TsgcWSPClient_DatasetMethods › Commit

Commit Method

Commits the current transaction so the server processes all queued messages.

Syntax

procedure Commit(const aChannel: string = '');

Parameters

NameTypeDescription
aChannelconst stringOptional channel scope of the transaction to commit. Leave empty to commit the default transaction.

Remarks

Closes the transaction opened with StartTransaction and instructs the server to dispatch every message queued during the transaction. Pair every StartTransaction with either Commit or RollBack.

Example

oProtocol.StartTransaction;
oProtocol.Publish('msg1', 'news');
oProtocol.Commit;

Back to Methods