We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b6dc1 commit 8618152Copy full SHA for 8618152
README.md
@@ -39,7 +39,7 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{
39
[socket on:@"currentAmount" callback:^(NSArray* data, SocketAckEmitter* ack) {
40
double cur = [[data objectAtIndex:0] floatValue];
41
42
- [[socket emitWithAck:@"testAckEmit" with:@[@YES]] timingOutAfter:0 callback:^(NSArray* data) {
+ [[socket emitWithAck:@"canUpdate" with:@[@(cur)] timingOutAfter:0 callback:^(NSArray* data) {
43
[socket emit:@"update" withItems:@[@{@"amount": @(cur + 2.50)}]];
44
}];
45
0 commit comments