Use these methods to enable the server to push updates to your client when various events happen, so that you can know and react right away. WebSocket API only.
- subscribe
Listen for updates about a particular subject.
- unsubscribe
Stop listening for updates about a particular subject.