TsgcWSPClient_Files › Events › OnConnect
Fires after the WebSocket handshake completes and the Files subprotocol is ready to transfer files.
property OnConnect: TsgcWSConnectEvent;
// TsgcWSConnectEvent = procedure(Connection: TsgcWSConnection) of object
—
Use this event to issue Subscribe calls or trigger a SendFile once the connection is ready. Connection carries the underlying TsgcWSConnection on which the QoS timer for fragmented transfers is also started.
procedure TForm1.oProtocolConnect(Connection: TsgcWSConnection);
begin
oProtocol.Subscribe('files.incoming');
end;