update doc

This commit is contained in:
Bing 2017-07-24 23:55:26 +02:00 committed by GitHub
parent 817f36e80b
commit 92792ba71e

View File

@ -40,7 +40,7 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{
double cur = [[data objectAtIndex:0] floatValue]; double cur = [[data objectAtIndex:0] floatValue];
[[socket emitWithAck:@"canUpdate" with:@[@(cur)]] timingOutAfter:0 callback:^(NSArray* data) { [[socket emitWithAck:@"canUpdate" with:@[@(cur)]] timingOutAfter:0 callback:^(NSArray* data) {
[socket emit:@"update" withItems:@[@{@"amount": @(cur + 2.50)}]]; [socket emit:@"update" with:@[@{@"amount": @(cur + 2.50)}]];
}]; }];
[ack with:@[@"Got your currentAmount, ", @"dude"]]; [ack with:@[@"Got your currentAmount, ", @"dude"]];