From f54153f3d47fcd01d16e97da67db52b6130e628b Mon Sep 17 00:00:00 2001 From: Erik Date: Wed, 13 May 2015 13:40:33 -0400 Subject: [PATCH] fix objc example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0683c11..feeacfc 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:@"localhost:8 double cur = [[data objectAtIndex:0] floatValue]; [socket emitWithAck:@"canUpdate" withItems:@[@(cur)]](0, ^(NSArray* data) { - [socket emit:@"update" withItems:@[@(cur + 2.50)]]; + [socket emit:@"update" withItems:@[@{@"amount": @(cur + 2.50)}]]; }); ack(@[@"Got your currentAmount, ", @"dude"]);