TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | Apache 2 |
ReleasedLast Release | Dec 2014 |
Maintained by Dirk Eisenberg.
Depends on: | |
SocketRocket | ~> 0.x |
AFNetworking | ~> 2.x |
AZSocketIO is a socket.io client for iOS. It:
It does not currently support namespacing a socket.
The last stable version (0.0.6) support socket.io ~> 0.9. New version supporting socket.io 1.0 is currently on developement.
AZSocketIO uses cocoapods, so you shouldn't have to think too much about dependencies, but here they are.
AZSocketIO *socket = [[AZSocketIO alloc] initWithHost:@"localhost" andPort:@"9000" secure:NO];
[socket setEventReceivedBlock:^(NSString *eventName, id data) {
NSLog(@"%@ : %@", eventName, data);
}];
[socket connectWithSuccess:^{
[socket emit:@"Send Me Data" args:@"cows" error:nil];
} andFailure:^(NSError *error) {
NSLog(@"Boo: %@", error);
}];
Luca Bernardi
Pat Shields
Apache 2.0