Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Support for socket.io 1.0.x #197

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
**The current version of this library does not yet support socket.io v1.0.
So if you want to use socket.io-objc, please fall back to v0.9.x.**
**This fork supports some socket.io v1.0 features, (no binary support yet). Many thanks to francoisTemasys who did most of the heavy lifting; this is a fork of a fork. v0.9.x compatibility is generally maintained.


---

Expand Down
6 changes: 6 additions & 0 deletions SocketIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#import <Foundation/Foundation.h>

#import "SocketIOTransport.h"
#import "SocketIOPacket.h"

@class SocketIO;
@class SocketIOPacket;
Expand All @@ -41,6 +42,7 @@ typedef enum {
} SocketIOErrorCodes;



@protocol SocketIODelegate <NSObject>
@optional
- (void) socketIODidConnect:(SocketIO *)socket;
Expand All @@ -61,6 +63,8 @@ typedef enum {
NSString *_endpoint;
NSDictionary *_params;

SocketIOVersion _version;

__weak id<SocketIODelegate> _delegate;

NSObject <SocketIOTransport> *_transport;
Expand All @@ -75,7 +79,9 @@ typedef enum {

// heartbeat
NSTimeInterval _heartbeatTimeout;
NSTimeInterval _connectionTimeout;
dispatch_source_t _timeout;
dispatch_source_t _heartbeat;

NSMutableArray *_queue;

Expand Down
Loading