Documentation

Hale.WebSockets.Network.WebSockets.Handshake

The WebSocket magic GUID used in the handshake (RFC 6455 §4.2.2).

Equations
Instances For

    Compute the WebSocket accept key from the client's Sec-WebSocket-Key. $$\text{acceptKey}(k) = \text{base64}(\text{SHA-1}(k \mathbin\Vert \text{GUID}))$$

    Equations
    Instances For

      Validate that a request is a valid WebSocket upgrade request.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Build the HTTP 101 Switching Protocols response for WebSocket upgrade.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For