added support for error codes in case of a connection being closed by pusher