- Notifications
You must be signed in to change notification settings - Fork12
socket.io client objective-c
License
NotificationsYou must be signed in to change notification settings
vasily-popov/VPSocketIO
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Socket.IO client for iOS. Supports socket.io 2.0+
It's based on a official Swift library from here:SocketIO-Client-Swift
It uses JetfireJetfire
#import<SocketIO-iOS/SocketIO-iOS.h>;NSURL* url = [[NSURLalloc]initWithString:@"http://localhost:8080"];SocketIOClient* socket = [[SocketIOClientalloc]initWithSocketURL:urlconfig:@{@"log": @YES];[socketon:@"connect"callback:^(NSArray* data, SocketAckEmitter* ack) {NSLog(@"socket connected");}];[socketconnect];
- Supports socket.io 2.0+
- Supports binary
- Supports Polling and WebSockets
- Supports TLS/SSL
Add these line to yourCartfile
:
github "vascome/vpsocketio" ~> 1.0.5 # Or latest version
Runcarthage update --platform ios,macosx
.
CreatePodfile
and addpod 'VPSocketIO'
(pod files are case sensetive):
target'MyApp'dopod'VPSocketIO','~> 1.0.5'# Or latest versionend
MIT
About
socket.io client objective-c
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published