Skip to content

Instantly share code, notes, and snippets.

@robwormald
Created January 30, 2014 19:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwormald/8716404 to your computer and use it in GitHub Desktop.
Save robwormald/8716404 to your computer and use it in GitHub Desktop.
- (void) socketIODidConnect:(SocketIO *)socket
{
NSLog(@"socket.io connected.");
SocketIOCallback cb = ^(id argsData) {
NSDictionary *response = argsData;
NSLog(@"%@",response);
};
[socketIO sendEvent:@"get" withData:[NSDictionary dictionaryWithObject:@"/employee" forKey:@"url"] andAcknowledge:cb];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment