TsgcWSAPIClient_MCP › Methods › SubscriptionsCancel
Cancels a subscription opened with SubscriptionsListen.
procedure SubscriptionsCancel(const aSubscriptionId: string);
| Name | Type | Description |
|---|---|---|
aSubscriptionId | const string | Id returned by SubscriptionsListen. |
Requires the protocol version 2026-07-28; in the legacy era the method raises an exception. With HTTP the stream is closed; with stdio the client sends notifications/cancelled. OnMCPSubscriptionClosed is raised when the subscription ends. All subscriptions are cancelled automatically by Initialize and when the component is destroyed.
See Subscriptions.
MCP.SubscriptionsCancel(vId);