Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

socket.io client objective-c

License

NotificationsYou must be signed in to change notification settings

vasily-popov/VPSocketIO

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

Objective-C Example

#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];

Features

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

Installation

Carthage

Add these line to yourCartfile:

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

Runcarthage update --platform ios,macosx.

CocoaPods 1.0.0 or later

CreatePodfile and addpod 'VPSocketIO' (pod files are case sensetive):

target'MyApp'dopod'VPSocketIO','~> 1.0.5'# Or latest versionend

License

MIT


[8]ページ先頭

©2009-2025 Movatter.jp