TsgcWSPClient_FilesMethods › Subscribe

Subscribe Method

Subscribes this client to a channel so it receives file-protocol notifications published on it.

Syntax

procedure Subscribe(const aChannel: String; const aGuid: String = '');

Parameters

NameTypeDescription
aChannelconst StringName of the channel the client joins.
aGuidconst StringOptional target subprotocol Guid on the server; leave empty to use the default instance.

Remarks

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.

Example

oProtocol.Subscribe('files.incoming');

Back to Methods