TsgcWSPClient_sgc › Methods › Commit
Commits the current transaction so the server processes all queued messages.
procedure Commit(const aChannel: string = '');
| Name | Type | Description |
|---|---|---|
aChannel | const string | Optional channel scope of the transaction to commit. Leave empty to commit the default transaction. |
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.
oProtocol.StartTransaction;
oProtocol.Publish('msg1', 'news');
oProtocol.Commit;