code: func (c *Client) sendMessage(marshalledJSON []byte) {
  	// Don't send the message if disconnected.
  	select {
  	case c.sendChan <- marshalledJSON:
  	case <-c.disconnectChan():
  		return
  	}
  }
docs: // sendMessage sends the passed JSON to the connected server using the
  // websocket connection.  It is backed by a buffered channel, so it will not
  // block until the send channel is full.