Creates the Donation Alerts events client that allows listen to various events, such as new donations, goal updates, and poll updates.
Readonly
onFires when a user's client establishes a connection to a Centrifugo server.
Readonly
onFires when a user's client disconnected from a Centrifugo server.
Registers a user in the client.
The ID of the user to register.
Returns a UserEventsClient by user ID.
The user to get the UserEventsClient instance of.
Checks whether a user was added to the client.
Creates a listener for user for donation events.
The ID of the user to listen donation events to.
A function to be called when donation event is sent to the user.
Creates a listener for user for goal update events.
The ID of the user to listen goal update events to.
A function to be called when goal update is sent to the user.
Creates a listener for user for poll update events.
The ID of the user to listen poll update events to.
A function to be called when poll update is sent to the user.
Removes a user and the listeners from the client.
If the user client doesn't have active channels, the connection will be closed.
The ID of the user to remove.
Generated using TypeDoc
Donation Alerts events client that allows listen to various events, such as new donations, goal updates, and poll updates.