TTMSFNCWebSocketHandshakeResponse Class
Holds the parsed handshake response returned by the server, exposing the individual negotiated header values and the raw header list.
API unit family: TMSFNCWebSocketClient
Syntax
TTMSFNCWebSocketHandshakeResponse = class
Properties
| Name | Description |
|---|---|
| Accept | Server accept token returned in the Sec-WebSocket-Accept header. It is validated against the hash of the request key to confirm a valid handshake. |
| Connection | Value of the Connection response header; expected to be Upgrade for a successful upgrade. |
| Extensions | Extensions negotiated with the server, when present. |
| Key | Key value echoed in the response, when present. |
| Protocol | Sub-protocol selected by the server, or an empty string when none was negotiated. |
| RawHeaders | The full set of raw response header lines as received from the server. |
| Upgrade | Value of the Upgrade response header; expected to be websocket for a successful upgrade. |
| Version | Protocol version reported by the server, when present. |