WebSocketClient constructor
The WebSocket endpoint URL on the Tendermint RPC server. Ex: ws://localhost:26657/websocket
0 for not to attempt reconnect, -1 for infinite, > 0 for number of times to attempt
retry interval in milliseconds
Destroys class as well as socket
An object repesenting a connection to a Terra node's WebSocket RPC endpoint. This allows for subscribing to Tendermint events through WebSocket.
Events
error emitted when error raises connect emitted after connection establishment reconnect emitted upon every attempt of reconnection destroyed emitted when socket has been destroyed
Example