on(eventName, callback)
Subscribes to a Daily call event. Follows the Node.js EventEmitter interface. The callback is called every time the event fires until explicitly removed with off().
Returns this, so calls can be chained.
Parameters
The event name to subscribe to. See the Events reference for all available events.
Function called when the event fires. Receives an event object whose shape depends on the event.
Return value
Returnsthis (the DailyCall instance) for chaining.