removeAllListeners #
Removes all listeners, either from a specific event or from all events
removeAllListeners([event]) #
Arguments | Type | Description |
---|---|---|
event | string | One of the event described in the Event Handling section of this documentation |
Return Value #
Returns the Kuzzle
object to allow chaining.
Usage #
// Removes all listeners on the "unsubscribed" global event
kuzzle.removeAllListeners(Event.disconnected);
// Removes all listeners on all global events
kuzzle.removeAllListeners();
Edit this page on Github (opens new window)