It returns a &url.Error{Op:"parse", URL:"", Err:"empty url"} error, but RFC 6455 says that "This header field is sent by browser clients; for non-browser clients, this header field may be sent if it makes sense in the context of those clients." in the Opening Handshake section.
It returns a &url.Error{Op:"parse", URL:"", Err:"empty url"} error, but RFC 6455 says that "This header field is sent by browser clients; for non-browser clients, this header field may be sent if it makes sense in the context of those clients." in the Opening Handshake section.