removeListener

kuzzle.removeListener('disconnected', callback);
kuzzle.removeListener(Event.disconnected, eventListener);
<?php
use \Kuzzle\Kuzzle;

$kuzzle = new Kuzzle('localhost');

$kuzzle->removeListener('queryError', $callback);

Removes a listener from an event.


removeListener(event, callback)

ArgumentsTypeDescription
eventstringOne of the event described in the Event Handling section of this documentation
callbackfunction/objectthe callback

Return value

Returns the Kuzzle object to allow chaining.