Overview
Theunsubscribe action allows you to stop receiving updates for a specific subscription without disconnecting from the WebSocket entirely. This is useful when you want to manage multiple subscriptions independently.
Unsubscribe Message Format
action: Must be"unsubscribe"version: Currently1subscription_id: The subscription ID you received when you subscribed (e.g.,"sub_wjhhq8dny2")
Example
To unsubscribe from a subscription:Getting the Subscription ID
When you subscribe, you receive an acknowledgment with asubscription_id: