Creates Donation Alerts Events client that allows listen to the various events.
Configuration for single user EventsClient
.
Readonly
onFires when the client establishes connection with Centrifugo server.
Readonly
onFires when the client disconnects from the Centrifugo server.
Centrifugo current connection client ID.
Returns null
if no connection is established.
Checks whether the client is currently connected to the server.
The ID of the user the events client belongs to.
Disconnects from the Donation Alerts Centrifugo WebSocket server.
Whether to remove all active listeners on disconnect. If you don't remove them,
the client will try to restore them on the next connection. Default is false
.
Subscribes to Donation Alerts donation events.
A function to be called when a donation event is sent to the user.
Subscribes to Donation Alerts goal update events.
A function to be called when a goal update event is sent to the user.
Subscribes to Donation Alerts poll update events.
A function to be called when a poll update event is sent to the user.
Reconnects to the Donation Alerts Centrifugo WebSocket server.
Whether to remove all listeners on reconnect. If the listeners won't be removed,
the client will restore all listeners on reconnect. Defaults to false
.
Unsubscribes from a channel and removes its listener.
The listener to remove.
Generated using TypeDoc
Single user client to listen to Donation Alerts events.