src/wampy.js
/**
     * Abort WAMP session establishment
     *
     * @returns {Wampy}
     */
Abort WAMP session establishment
@returns {Wampy}
Abort WAMP session establishment @returns { Wampy }
abort () {
        if (!this._cache.sessionId && this._ws.readyState === 1) {
            this._send([WAMP_MSG_SPEC.ABORT, {}, 'wamp.error.abort']);
            this._cache.sessionId = null;
        }
        this._ws.close();
        this._cache.opStatus = WAMP_ERROR_MSG.SUCCESS;
        return this;
    }
abort ( ) { if ( ! this . _cache . sessionId && this . _ws . readyState === 1 ) { this . _send ( [ WAMP_MSG_SPEC . ABORT , { } , 'wamp.error.abort' ] ) ; this . _cache . sessionId = null ; } this . _ws . close ( ) ; this . _cache . opStatus = WAMP_ERROR_MSG . SUCCESS ; return this ; }
Abort WAMP session establishment
 @returns {Wampy}
Abort WAMP session establishment @returns { Wampy }