src/wampy.js
/**
     * Internal websocket on error callback
     * @param {object} error
     * @private
     */
Internal websocket on error callback
@param {object} error
@private
Internal websocket on error callback @param { object } error @private
_wsOnError (error) {
        this._log('[wampy] websocket error');
        if (this._options.onError) {
            this._options.onError({ error });
        }
    }
_wsOnError ( error ) { this . _log ( '[wampy] websocket error' ) ; if ( this . _options . onError ) { this . _options . onError ( { error } ) ; } }
Internal websocket on error callback
 @param {object} error
 @private
Internal websocket on error callback @param { object } error @private