removeListener

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

$kuzzle = new Kuzzle('localhost');

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

Remove a listener from an event.


removeListener(event, callback)

Arguments Type Description
event string One of the events described in the Event Handling section of this documentation
callback function/object the callback

Return Value

Returns the Kuzzle object to allow chaining.