TsgcWSPClient_WAMP › Methods › UnSubscribe
Cancels a prior subscription so that further events on the topic no longer reach this client.
procedure UnSubscribe(const aTopicURI: String);
| Name | Type | Description |
|---|---|---|
aTopicURI | const String | Fully-qualified URI (or prefixed CURIE) of the topic to cancel. Must match the URI used in the original Subscribe call exactly. |
Sends a WAMP v1 UNSUBSCRIBE frame (type id 6). Like Subscribe, the server performs the operation silently; there is no acknowledgement callback. After unsubscribing, in-flight events already queued on the wire may still surface one more time in OnEvent, so handlers should tolerate late deliveries. Closing the WebSocket also clears every subscription, removing the need to call this method on shutdown.
WAMP.UnSubscribe('http://example.com/chat#lobby');