code: func (c *wsClient) Disconnect() {
  	c.Lock()
  	defer c.Unlock()
  
  	// Nothing to do if already disconnected.
  	if c.disconnected {
  		return
  	}
  
  	rpcsLog.Tracef("Disconnecting websocket client %s", c.addr)
  	close(c.quit)
  	c.conn.Close()
  	c.disconnected = true
  }
docs: // Disconnect disconnects the websocket client.