TsgcWSPClient_DatasetMethods › Notify

Notify Method

Sends a one-way notification to the server that does not expect a response.

Syntax

procedure Notify(const aMethod: string; const aParams: string = ''; const aGuid: String = ''; const aQueue: TwsQueue = queueLevel0);

Parameters

NameTypeDescription
aMethodconst stringName of the remote method to invoke on the server.
aParamsconst stringOptional parameter payload (typically a JSON string).
aGuidconst StringOptional Guid of the target server-side Dataset protocol instance. Leave empty to use the default.
aQueueconst TwsQueueQueue level used when the server applies transactional queuing to the notification.

Remarks

Notify is a fire-and-forget variant of RPC: no Id is generated and neither OnRPCResult nor OnRPCError is raised. Use it when the client does not need to correlate a response with the call.

Example

oProtocol.Notify('log', '{"text":"client started"}');

Back to Methods