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