Skip to content

Commit f54153f

Browse files
committed
fix objc example
1 parent 709ecc3 commit f54153f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:@"localhost:8
3535
double cur = [[data objectAtIndex:0] floatValue];
3636

3737
[socket emitWithAck:@"canUpdate" withItems:@[@(cur)]](0, ^(NSArray* data) {
38-
[socket emit:@"update" withItems:@[@(cur + 2.50)]];
38+
[socket emit:@"update" withItems:@[@{@"amount": @(cur + 2.50)}]];
3939
});
4040

4141
ack(@[@"Got your currentAmount, ", @"dude"]);

0 commit comments

Comments
 (0)