Latest 1.0.5
Homepage https://github.com/vascome/VPSocketIO
License MIT
Platforms ios 9.0, requires ARC
Authors

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 Jetfire Jetfire

Objective-C Example

#import <SocketIO-iOS/SocketIO-iOS.h>;
NSURL* url = [[NSURL alloc] initWithString:@"http://localhost:8080"];
SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{@"log": @YES];

[socket on:@"connect" callback:^(NSArray* data, SocketAckEmitter* ack) {
    NSLog(@"socket connected");
}];

[socket connect];

Features

  • Supports socket.io 2.0+
  • Supports binary
  • Supports Polling and WebSockets
  • Supports TLS/SSL

Installation

Carthage

Add these line to your Cartfile:

github "vascome/vpsocketio" ~> 1.0.3 # Or latest version

Run carthage update --platform ios,macosx.

CocoaPods 1.0.0 or later

Create Podfile and add pod 'vpsocketio':


target 'MyApp' do
    pod 'vpsocketio', '~> 1.0.3' # Or latest version
end

License

MIT

Latest podspec

{
    "name": "VPSocketIO",
    "version": "1.0.5",
    "summary": "Socket.IO client for iOS",
    "description": "Socket.IO-client for iOS.nSupports ws/wss/polling connections and binary.nFor socket.io 2.0+ and Objective-C.",
    "homepage": "https://github.com/vascome/VPSocketIO",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Vasily Popov": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/vascome/VPSocketIO.git",
        "tag": "1.0.5",
        "submodules": true
    },
    "source_files": [
        "Source/*.{h,m}",
        "jetfire/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This