code: func onHandshake(data []byte) (err error) {
  	if !(bytes.Equal(handshakePrefix[:20], data[:20]) && data[25]&0x10 != 0) {
  		err = errors.New("invalid handshake response")
  	}
  	return
  }
docs: // onHandshake handles the handshake response.