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.
2 parents e723604 + 863480a commit b6aaa42Copy full SHA for b6aaa42
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:@"canUpdate" with:@[@(cur)] 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