Unsubscribe & Disconnect
Unsubscribe
Section titled “Unsubscribe”To stop receiving transactions while staying connected:
{"type": "unsubscribe"}Server response:
{ "type": "unsubscribed", "message": "Subscription removed"}You can subscribe again later without reconnecting.
Check Current Subscription
Section titled “Check Current Subscription”To see your active filter:
{"type": "getSubscriptions"}Server response:
{ "type": "currentSubscription", "filter": { "platform": ["pump_fun"], "eventType": ["create"] }, "messagesSent": 1234, "connectedAt": 1734278400000}If not subscribed, filter will be null.
Disconnect
Section titled “Disconnect”Simply close the connection.
The server automatically clears your filter when you disconnect, so you don’t need to unsubscribe first.