Home > sip.js > Emitter > once
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;
Parameter | Type | Description |
---|---|---|
listener | (data: T) => void |
Callback function. |
Returns:
void