TsgcWebSocketClient | WebSocket HandShake
The WebSocket protocol uses an HTTP HandShake to upgrade from the HTTP protocol to the WebSocket protocol. This handshake is handled internally by the TsgcWebSocket Client component, but you can add your own custom HTTP headers if the server requires additional HTTP header information.
Example: if you need to add this HTTP Header "Client: sgcWebSockets"
procedure OnHandshake(Connection: TsgcWSConnection; var Headers: TStringList);
begin
Headers.Add('Client: sgcWebSockets');
end;