Discuss this help topic in SecureBlackbox Forum
TElWebSocketBase.CreateWebSocketAccept
Generates the content of the header field used to initiate WebSocket handshake on server's side.
Declaration
Parameters
Return value
Returns the string containing the Sec-WebSocket-Accept value.
Description
According to RFC 6455, a WebSocket client's handshake is just an HTTP Upgrade request. The client's handshake request should contain the Sec-WebSocket-Key header field containing a randomly generated 16-byte value. To accept the handhsake, the server generates a Sec-WebSocket-Accept header field basing on the received Sec-WebSocket-Key value. Use this method to generate the value of the Sec-WebSocket-Accept field of the server's handshake response.