@@ -39,7 +39,7 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{
3939[ socket on:@"currentAmount" callback:^(NSArray* data, SocketAckEmitter* ack) {
4040 double cur = [[ data objectAtIndex:0] floatValue] ;
4141
42- [socket emitWithAck:@"canUpdate " with:@[@(cur)]](0, ^(NSArray* data) {
42+ [[ socket emitWithAck:@"testAckEmit " with:@[@YES]] timingOutAfter:0 callback: ^(NSArray* data) {
4343 [socket emit:@"update" withItems:@[@{@"amount": @(cur + 2.50)}]];
4444 }];
4545
@@ -95,7 +95,7 @@ Carthage
9595-----------------
9696Add this line to your ` Cartfile ` :
9797```
98- github "socketio/socket.io-client-swift" ~> 8.0.3 # Or latest version
98+ github "socketio/socket.io-client-swift" ~> 8.1.0 # Or latest version
9999```
100100
101101Run ` carthage update --platform ios,macosx ` .
@@ -108,7 +108,7 @@ Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
108108use_frameworks!
109109
110110target ' YourApp' do
111- pod ' Socket.IO-Client-Swift' , ' ~> 8.0.3 ' # Or latest version
111+ pod ' Socket.IO-Client-Swift' , ' ~> 8.1.0 ' # Or latest version
112112end
113113```
114114
@@ -137,7 +137,7 @@ CocoaSeeds
137137Add this line to your ` Seedfile ` :
138138
139139```
140- github "socketio/socket.io-client-swift", "v8.0.3 ", :files => "Source/*.swift" # Or latest version
140+ github "socketio/socket.io-client-swift", "v8.1.0 ", :files => "Source/*.swift" # Or latest version
141141```
142142
143143Run ` seed install ` .
0 commit comments