Subscribing & Unsubscribing
Subscribing
Subscribing to checkpoints enables you to listen to current state events for accounts, transactions (such as payments) and token activity.
To subscribe to a stream with the name stream
send a text frame over the websocket connection with the following JSON payload:
confirmation will be received as below:
Have a try with below command in your terminal:
or with below:
Unsubscribing
Similarly, to unsubscribe from a stream with the name stream
:
confirmation will be received as below:
When subscribed, try with below command in your terminal:
Last updated