removeAllListeners

// Removes all listeners on the "unsubscribed" global event
kuzzle.removeAllListeners('disconnected');

// Removes all listeners on all global events
kuzzle.removeAllListeners();
// Removes all listeners on the "unsubscribed" global event
kuzzle.removeAllListeners(Event.disconnected);

// Removes all listeners on all global events
kuzzle.removeAllListeners();
<?php
use \Kuzzle\Kuzzle;

$kuzzle = new Kuzzle('localhost');

// Removes all listeners on the "queryError" global event
$kuzzle->removeAllListeners('queryError');

// Removes all listeners on all global events
$kuzzle->removeAllListeners();

Removes all listeners, either from a specific event or from all events


removeAllListeners([event])

ArgumentsTypeDescription
eventstringOne of the event described in the Event Handling section of this documentation

Return value

Returns the Kuzzle object to allow chaining.