code: func (c *Client) handleChannelOpens(in <-chan NewChannel) {
  	for ch := range in {
  		c.mu.Lock()
  		handler := c.channelHandlers[ch.ChannelType()]
  		c.mu.Unlock()
  
  		if handler != nil {
  			handler <- ch
  		} else {
  			ch.Reject(UnknownChannelType, fmt.Sprintf("unknown channel type: %v", ch.ChannelType()))
  		}
  	}
  
  	c.mu.Lock()
  	for _, ch := range c.channelHandlers {
  		close(ch)
  	}
  	c.channelHandlers = nil
  	c.mu.Unlock()
  }
docs: // handleChannelOpens channel open messages from the remote side.