397
388
// Client handshake described in draft-ietf-hybi-thewebsocket-protocol-17
398
389
func hybiClientHandshake(config *Config, br *bufio.Reader, bw *bufio.Writer) (err error) {
403
390
bw.WriteString("GET " + config.Location.RequestURI() + " HTTP/1.1\r\n")
405
392
bw.WriteString("Host: " + config.Location.Host + "\r\n")