TsgcWSPClient_Dataset › Methods › RollBack
Rolls back the current transaction and discards all queued messages on the server.
procedure RollBack(const aChannel: string = '');
| Name | Type | Description |
|---|---|---|
aChannel | const string | Optional channel scope of the transaction to roll back. Leave empty to roll back the default transaction. |
Cancels the transaction started by StartTransaction. Messages that were sent between StartTransaction and RollBack are deleted server-side and are never delivered to subscribers.
oProtocol.StartTransaction;
oProtocol.Publish('draft', 'news');
oProtocol.RollBack;