function _onError(error) {
        if (_connectDeferred) {
            _connectDeferred.reject();
            _connectDeferred = null;
        }
        exports.trigger("error", error);
    }
function _onError(error) {
        if (_connectDeferred) {
            _connectDeferred.reject();
            _connectDeferred = null;
        }
        exports.trigger("error", error);
    }
function _onError ( error ) { if ( _connectDeferred ) { _connectDeferred . reject ( ) ; _connectDeferred = null ; } exports . trigger ( "error" , error ) ; }
WebSocket reported an error
WebSocket reported an error
Called when an error occurs during the connection