code: func NewConn(protocols map[string]ChannelProtocolConfig) *Conn {
  	return &Conn{
  		ready:     make(chan struct{}),
  		protocols: protocols,
  	}
  }
docs: // NewConn creates a WebSocket connection that supports a set of channels. Channels begin each
  // web socket message with a single byte indicating the channel number (0-N). 255 is reserved for
  // future use. The channel types for each channel are passed as an array, supporting the different
  // duplex modes. Read and Write refer to whether the channel can be used as a Reader or Writer.
  //
  // The protocols parameter maps subprotocol names to ChannelProtocols. The empty string subprotocol
  // name is used if websocket.Config.Protocol is empty.