Discuss this help topic in SecureBlackbox Forum
TElWebSocketClient.CreateWebSocketKey
Creates a new random key for a WebSocket handshake.
Declaration
Parameters
Return value
Returns the base64-encoded random key.
Description
Use this method to create a new value for the Sec-WebSocket-Key header field. The WebSocket key is a nonce consisting of a randomly selected 16-byte value that has been base64-encoded, and is used in the server's handshake to indicate the acceptance of the connection. The unique key has to be generated for each new connection.