on

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

Listens on the event.

Return

a reference to this object.

Parameters

event

event name.

fn