Skip to content

Unsubscribe & Disconnect

To stop receiving transactions while staying connected:

{"type": "unsubscribe"}

Server response:

{
"type": "unsubscribed",
"message": "Subscription removed"
}

You can subscribe again later without reconnecting.

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.

Simply close the connection.

The server automatically clears your filter when you disconnect, so you don’t need to unsubscribe first.