off

open fun off(): Emitter

Removes all registered listeners.

Return

a reference to this object.


open fun off(event: String): Emitter

Removes all listeners of the specified event.

Return

a reference to this object.

Parameters

event

an event name.


open fun off(event: String, fn: Emitter.Listener): Emitter

Removes the listener.

Return

a reference to this object.

Parameters

event

an event name.

fn