code: func NewClient(c Conn, chans <-chan NewChannel, reqs <-chan *Request) *Client {
  	conn := &Client{
  		Conn:            c,
  		channelHandlers: make(map[string]chan NewChannel, 1),
  	}
  
  	go conn.handleGlobalRequests(reqs)
  	go conn.handleChannelOpens(chans)
  	go func() {
  		conn.Wait()
  		conn.forwards.closeAll()
  	}()
  	go conn.forwards.handleChannels(conn.HandleChannelOpen("forwarded-tcpip"))
  	return conn
  }
docs: // NewClient creates a Client on top of the given connection.