lukeredpath/libPusher — pull request #94 by aschuch (2013-04-22 15:41:29+00:00)
Title: Support for error codes in case of a connection being closed

At the moment, error codes on connection close are not checked to conform to the Pusher protocol (http://pusher.com/docs/pusher_protocol).
This also fixes an issue where clients would try to connect again and again if ```connectAutomatically``` is enabled, but e.g. a wrong application key was supplied.