once

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

Adds a one time listener for the event.

Return

a reference to this object.

Parameters

event

an event name.

fn