Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 647 Bytes

sip.js.emitter.once.md

File metadata and controls

29 lines (18 loc) · 647 Bytes

Home > sip.js > Emitter > once

Emitter.once() method

Warning: This API is now obsolete.

Use addListener.

Registers a listener then unregisters the listener after one event emission.

Signature:

once(listener: (data: T) => void): void;

Parameters

Parameter Type Description
listener (data: T) => void Callback function.

Returns:

void