TsgcWSPClient_WAMPMethods › UnSubscribe

UnSubscribe Method

Cancels a prior subscription so that further events on the topic no longer reach this client.

Syntax

procedure UnSubscribe(const aTopicURI: String);

Parameters

NameTypeDescription
aTopicURIconst StringFully-qualified URI (or prefixed CURIE) of the topic to cancel. Must match the URI used in the original Subscribe call exactly.

Remarks

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.

Example


WAMP.UnSubscribe('http://example.com/chat#lobby');

Back to Methods