code: func (c *Client) Disconnected() bool {
  	c.mtx.Lock()
  	defer c.mtx.Unlock()
  
  	select {
  	case <-c.connEstablished:
  		return c.disconnected
  	default:
  		return false
  	}
  }
docs: // Disconnected returns whether or not the server is disconnected.  If a
  // websocket client was created but never connected, this also returns false.