This is a port of the code from http://github.com/esad/zimt. Mostly I made the code more generic by re-namespacing everything under WebSocket.
samlown/cocoa-websocket
A fork of cocoa-websocket that handles errors and disconnections in a more robust fashion.
Objective-CZlib