> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# on()

> Subscribes to a Daily call event.

`on(eventName, callback)`

Subscribes to a Daily call event. Follows the Node.js [`EventEmitter`](https://nodejs.org/api/events.html#events_class_eventemitter) interface. The callback is called every time the event fires until explicitly removed with [`off()`](https://docs.daily.co/reference/react-native/instance-methods/off).

Returns `this`, so calls can be chained.

## Parameters

**eventName** `DailyEvent` *required*

The event name to subscribe to. See the [Events](https://docs.daily.co/reference/react-native/events.md) reference for all available events.

**callback** `function` *required*

Function called when the event fires. Receives an event object whose shape depends on the event.

## Return value

Returns `this` (the `DailyCall` instance) for chaining.

## Example

```javascript theme={null}
call
  .on('joined-meeting', ({ participants }) => {
    console.log('Joined! Participants:', participants);
  })
  .on('participant-joined', ({ participant }) => {
    console.log('New participant:', participant.user_name);
  })
  .on('left-meeting', () => {
    console.log('Left the call');
  });
```

## See also

> [card] Methods
>
> * [off()](https://docs.daily.co/reference/react-native/instance-methods/off.md)
> * [once()](https://docs.daily.co/reference/react-native/instance-methods/once.md)

> [card] Guides
>
> * [Events](https://docs.daily.co/docs/daily-js/concepts/events.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.