Complete the WebSocket opening handshake before processing data frames
A server rejects a WebSocket opening request that lacks the required GET, Host, Upgrade, Connection, 16-byte encoded key, or version-13 fields. Accepting the connection requires status 101, Upgrade and Connection fields, and Sec-WebSocket-Accept computed from the client’s key and the protocol GUID.
Read the guide