code: func (c *wsClient) write(mt int, payload []byte) error {
  	c.conn.SetWriteDeadline(time.Now().Add(writeWait))
  	return c.conn.WriteMessage(mt, payload)
  }
docs: // write writes a message with the given message type and payload.