src/wampy.js
/**
     * Reconnect to server in case of websocket error
     * @private
     */
Reconnect to server in case of websocket error
@private
Reconnect to server in case of websocket error @private
_wsReconnect () {
        this._log('[wampy] websocket reconnecting...');
        if (this._options.onReconnect) {
            this._options.onReconnect();
        }
        this._cache.reconnectingAttempts++;
        this._ws = getWebSocket(this._url, this._protocols, this._options.ws,
            this._options.additionalHeaders, this._options.wsRequestOptions);
        this._initWsCallbacks();
    }
_wsReconnect ( ) { this . _log ( '[wampy] websocket reconnecting...' ) ; if ( this . _options . onReconnect ) { this . _options . onReconnect ( ) ; } this . _cache . reconnectingAttempts ++ ; this . _ws = getWebSocket ( this . _url , this . _protocols , this . _options . ws , this . _options . additionalHeaders , this . _options . wsRequestOptions ) ; this . _initWsCallbacks ( ) ; }
Reconnect to server in case of websocket error
 @private
Reconnect to server in case of websocket error @private