primus-objc
primus-objc copied to clipboard
A client written in Objective-C for the Primus real-time framework with initial support for web sockets (via SocketRocket) and socket.io (via socket.IO-objc). Easily switch between different real-time...
Due to modern browse implementations, Primus has switched to server-side pings. See: https://github.com/primus/primus/pull/534
Here is the short sample: https://gist.github.com/cfr/dfcb50accd64014a0019 Obviously we need some kind of wrapper to avoid casting: ``` let data: @objc_block (NSDictionary, AnyObject) -> () = { (d: NSDictionary, raw: AnyObject)...