Whether to automatically reconnect on disconnect, default true.
Fired when a connection has been (re)established.
Fired after a connection has been manually closed, or if autoReconnect
is false, if the WebSocket disconnects for any reason.
Fired when an error with the WebSocket occurs.
Fired when a message is sent from the WebSocket.
Fired after a connection has been unexpectedly closed, and before a
reconnection attempt is made. Only fired if autoReconnect
is true.
Close the WebSocket connection and prevent future any reconnection attempts.
Subscribe to the given script type and payload.
For "p2pkh", scriptPayload
is the 20 byte public key hash.
Unsubscribe from the given script type and payload.
Wait for the WebSocket to be connected.
Generated using TypeDoc
WebSocket connection to Chronik.