disconnect(ws) {
    if (!ws || this.ws === ws) {
      this.ws && this.ws.close();
      this.ws = null;
      return true;
    }
  }
Disconnects from Realtime API server
@param {WebSocket} [ws]
@returns {true}