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

Issue #176 #177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions SocketIO.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ @implementation SocketIO
heartbeatTimeout = _heartbeatTimeout,
returnAllDataFromAck = _returnAllDataFromAck;

- (id) initWithDelegate:(id<SocketIODelegate>)delegate

- (id) init
{
self = [super init];
if (self) {
_delegate = delegate;
_delegate = nil;
_queue = [[NSMutableArray alloc] init];
_ackCount = 0;
_acks = [[NSMutableDictionary alloc] init];
Expand All @@ -94,6 +95,15 @@ - (id) initWithDelegate:(id<SocketIODelegate>)delegate
return self;
}

- (id) initWithDelegate:(id<SocketIODelegate>)delegate
{
self = [super init];
if (self) {
_delegate = delegate;
}
return self;
}

- (void) connectToHost:(NSString *)host onPort:(NSInteger)port
{
[self connectToHost:host onPort:port withParams:nil withNamespace:@"" withConnectionTimeout:defaultConnectionTimeout];
Expand Down