Configuration Options.
Internal list of subscribers.
Maximum number of subscribers that can receive data.
0 = no limit applies
.
For compatibility with web browsers.
Current number of subscribers.
Creates unsubscribe callback function for the Subscription class.
Subscriber details.
Function that implements the unsubscribe request.
Gets all recipients that must receive data.
It returns a copy of subscribers array for safe iteration, while applying the maximum limit when it is set with the max option.
Removes an existing subscriber from the list.
Subscriber to be removed, which must be on the list.
Asynchronous data broadcast to all subscribers.
Data to be sent, according to the type template.
Optional callback function to be notified when the last recipient has received the data. The function takes one parameter - total number of clients that received the data. Note that asynchronous subscribers may still be processing the data at this point.
Number of clients that will be receiving the data.
Safe asynchronous data broadcast to all subscribers.
Errors from subscription callbacks are passed into the callback function, which handles both synchronous and asynchronous subscription functions.
Data to be sent, according to the type template.
Callback for handling errors from subscribers.
Number of clients that will be receiving the data.
Synchronous data broadcast to all subscribers.
Data to be sent, according to the type template.
Number of clients that have received the data.
Note that asynchronous subscribers may still be processing the data.
Subscribes to receive all data events.
Data notification callback function.
Object for unsubscribing safely.
Unsubscribes all clients.
Generated using TypeDoc
Implements subscribing to events and triggering them.