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


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.


Copied to clipboard!

use \Kuzzle\Kuzzle;

$kuzzle = new Kuzzle('localhost');

// Removes all listeners on the "queryError" global event

// Removes all listeners on all global events