The WebSocket API is very similar to the RPC API, the only difference is the way you connect to the Node.
The method we recommend is to use wscat as a client for connecting to websockets.
wscat can be installed using npm:
1
$ sudonpminstall -g wscat
Copied!
Connect using the Bware Generated Endpoint
To connect to the endpoint, we will use the following command: