Skip to content

A socket.io client for objective-c. Cocoapods-friendly. Appledocs. Built of AFNetworking and SocketRocket. Websockets + XHR.

License

Notifications You must be signed in to change notification settings

BublTechnology/AZSocketIO

 
 

Repository files navigation

AZSocketIO

AZSocketIO is a socket.io client for iOS. It:

  • Supports websockets and XHR-polling transports
  • Is about alpha stage
  • Is heavily reliant on blocks for it's API
  • Has appledocs for all user facing classes
  • Welcomes patches and issues

It does not currently support namespacing a socket.

Requirements

  • 0.0.5 -> iOS 5.x+
  • 0.0.6 -> iOS 6.x+

Protocol Support

The last stable version (0.0.6) support socket.io ~> 0.9. New version supporting socket.io 1.0 is currently on developement.

Dependencies

AZSocketIO uses cocoapods, so you shouldn't have to think too much about dependencies, but here they are.

Usage

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);
}];

Author

Luca Bernardi

Pat Shields

Contributors

License

Apache 2.0

About

A socket.io client for objective-c. Cocoapods-friendly. Appledocs. Built of AFNetworking and SocketRocket. Websockets + XHR.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 97.1%
  • Ruby 2.0%
  • JavaScript 0.9%