Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 584 Bytes

sip.js.emitter.on.md

File metadata and controls

29 lines (18 loc) · 584 Bytes

Home > sip.js > Emitter > on

Emitter.on() method

Warning: This API is now obsolete.

Use addListener.

Registers a listener.

Signature:

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

Parameters

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

Returns:

void