Skip to content

dzhng/ss-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SocketStream iOS library

Includes iOS implementation of the SocketStream protocol (in Stream.m) and Engine.io protocol (in Socket.m). Will read / store SocketStream SessionID, watchdog timer / activity timer, auto-reconnect when disconnected, and make RPC / PubSub calls

To connect to localhost:9002, just run:

stream = [[Stream alloc] initWithHost:@"localhost" port:9002 secure:NO];
stream.delegate = self;
[stream connectToServer];

NOTE: This WILL NOT work with current version of SocketStream, it needs to be modified first.

This library is designed to connect to engine.io using only websocket. This means the SessionID needs to be generated on the SocketStream server and sent down to the client. When the client first start up, it will send a handshake system message in the form of X|, if no SessionID is found, it will send X|null.

When the server receive the handshake, it needs to either respond with X|OK if the SessionID is correct, or X| if the SessionID is invalid / null.

About

SocketStream iOS client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published