src/events/ReconnectingWebSocket.js
/**
   * Closes the underlying websocket instance and removes all event
   * listeners from this object.
   */
Closes the underlying websocket instance and removes all event
listeners from this object.
Closes the underlying websocket instance and removes all event listeners from this object .
close() {
    if (this._ws) {
      this._ws.removeAllListeners();
      this._ws.close();
      this._ws = null;
      this.emit("close");
    }
    this.removeAllListeners();
  }
close ( ) { if ( this . _ws ) { this . _ws . removeAllListeners ( ) ; this . _ws . close ( ) ; this . _ws = null ; this . emit ( "close" ) ; } this . removeAllListeners ( ) ; }
Closes the underlying websocket instance and removes all event
 listeners from this object.
Closes the underlying websocket instance and removes all event listeners from this object .