TsgcWSPClient_Files › Methods › Subscribe
Subscribes this client to a channel so it receives file-protocol notifications published on it.
procedure Subscribe(const aChannel: String; const aGuid: String = '');
| Name | Type | Description |
|---|---|---|
aChannel | const String | Name of the channel the client joins. |
aGuid | const String | Optional target subprotocol Guid on the server; leave empty to use the default instance. |
Issue Subscribe inside OnConnect so the server registers interest for this client. Once confirmed, OnSubscription fires and any file notification broadcast to the channel will be delivered.
oProtocol.Subscribe('files.incoming');