pkyeck/socket.IO-objc — pull request #51 by taiyangc (2012-11-12 12:12:26+00:00)
Title: Add NSError argument to SocketIODidDisconnect + refactor SocketIO error codes

I added some error info to the SocketIODidDisconnect delegate callback so that the user may decide what to do after a disconnect. This is quite useful in my app since I need to notify the user based on whether it's a common websocket disconnect (which leads to a retry) or the server unexpectedly chose to kill the connection, etc.

This changes the API but I think will be worth it in the longshot.