From bd5c852fb6fa08028bbaefcdada0104b70c8dea4 Mon Sep 17 00:00:00 2001 From: Erik Little Date: Wed, 5 Oct 2016 08:56:22 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 945c876..13161b2 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{ [socket on:@"currentAmount" callback:^(NSArray* data, SocketAckEmitter* ack) { double cur = [[data objectAtIndex:0] floatValue]; - [socket emitWithAck:@"canUpdate" withItems:@[@(cur)]](0, ^(NSArray* data) { + [socket emitWithAck:@"canUpdate" with:@[@(cur)]](0, ^(NSArray* data) { [socket emit:@"update" withItems:@[@{@"amount": @(cur + 2.50)}]]; });