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 2faa2ae commit bd5c852Copy full SHA for bd5c852
README.md
@@ -38,7 +38,7 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{
38
[socket on:@"currentAmount" callback:^(NSArray* data, SocketAckEmitter* ack) {
39
double cur = [[data objectAtIndex:0] floatValue];
40
41
- [socket emitWithAck:@"canUpdate" withItems:@[@(cur)]](0, ^(NSArray* data) {
+ [socket emitWithAck:@"canUpdate" with:@[@(cur)]](0, ^(NSArray* data) {
42
[socket emit:@"update" withItems:@[@{@"amount": @(cur + 2.50)}]];
43
});
44
0 commit comments