TsgcWSPServer_E2EE › Events › OnConnect
Fired when a client WebSocket connection is established on the E2EE subprotocol.
property OnConnect: TsgcWSConnectEvent;
// TsgcWSConnectEvent = procedure(Connection: TsgcWSConnection) of object
—
Invoked once per client after the WebSocket handshake completes and the E2EE subprotocol is negotiated. The Connection argument gives access to the remote identity and can be used to register per-connection state in your application.
procedure TfrmServerE2EE.WSPE2EEConnect(Connection: TsgcWSConnection);
begin
MemoLog.Lines.Add('connected: ' + Connection.Guid);
end;