> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# ConferenceEvent (enum)

[Events](/api-reference/websdk5/conference/events/overview)

**Values**

* [Connected](/api-reference/websdk5/conference/events/conferenceevent#connected)
* [Disconnected](/api-reference/websdk5/conference/events/conferenceevent#disconnected)
* [EndpointAdded](/api-reference/websdk5/conference/events/conferenceevent#endpointadded)
* [EndpointRemoved](/api-reference/websdk5/conference/events/conferenceevent#endpointremoved)
* [Failed](/api-reference/websdk5/conference/events/conferenceevent#failed)
* [InfoReceived](/api-reference/websdk5/conference/events/conferenceevent#inforeceived)
* [MessageReceived](/api-reference/websdk5/conference/events/conferenceevent#messagereceived)
* [ScreenSharingFailed](/api-reference/websdk5/conference/events/conferenceevent#screensharingfailed)
* [ScreenSharingStarted](/api-reference/websdk5/conference/events/conferenceevent#screensharingstarted)
* [StatsReport](/api-reference/websdk5/conference/events/conferenceevent#statsreport)

## Values

### Connected

`Connected: "Connected"`

Triggered after a conference has been successfully connected.

Listener is called with [ConferenceConnected](/api-reference/websdk5/conference/events/conferenceconnected) and payload:

**Parameters**

| Parameter      | Type                     | Requirement | Description                            |
| -------------- | ------------------------ | ----------- | -------------------------------------- |
| `conferenceId` | `string`                 | Required    | Conference id                          |
| `headers`      | `Record<string, string>` | Optional    | Optional headers passed with the event |

### Disconnected

`Disconnected: "Disconnected"`

Triggered after a conference has been disconnected.

Listener is called with [ConferenceDisconnected](/api-reference/websdk5/conference/events/conferencedisconnected) and payload:

**Parameters**

| Parameter      | Type                                                                                                | Requirement | Description                            |
| -------------- | --------------------------------------------------------------------------------------------------- | ----------- | -------------------------------------- |
| `conferenceId` | `string`                                                                                            | Required    | Conference id                          |
| `headers`      | `Record<string, string>`                                                                            | Optional    | Optional headers passed with the event |
| `reason`       | [`ConferenceDisconnectReason`](/api-reference/websdk5/conference/events/conferencedisconnectreason) | Required    | Reason that the conference ended with  |

### EndpointAdded

`EndpointAdded: "EndpointAdded"`

Triggered after an endpoint is added to a conference.

Listener is called with [ConferenceEndpointAddedPayload](/api-reference/websdk5/conference/events/conferenceendpointaddedpayload) and payload:

**Parameters**

| Parameter       | Type     | Requirement | Description   |
| --------------- | -------- | ----------- | ------------- |
| `conferenceId`  | `string` | Required    | Conference id |
| `newEndpointId` | `string` | Required    | Endpoint id   |

### EndpointRemoved

`EndpointRemoved: "EndpointRemoved"`

Triggered after the endpoint is removed from a conference.

Listener is called with [ConferenceEndpointRemoved](/api-reference/websdk5/conference/events/conferenceendpointremoved) and payload:

**Parameters**

| Parameter           | Type     | Requirement | Description   |
| ------------------- | -------- | ----------- | ------------- |
| `conferenceId`      | `string` | Required    | Conference id |
| `removedEndpointId` | `string` | Required    | Endpoint id   |

### Failed

`Failed: "Failed"`

Triggered if a conference has failed.

Listener is called with [ConferenceFailed](/api-reference/websdk5/conference/events/conferencefailed) and payload:

**Parameters**

| Parameter      | Type                     | Requirement | Description                            |
| -------------- | ------------------------ | ----------- | -------------------------------------- |
| `code`         | `number`                 | Required    | Conference status code                 |
| `conferenceId` | `string`                 | Required    | Conference id                          |
| `headers`      | `Record<string, string>` | Optional    | Optional headers passed with the event |
| `reason`       | `string`                 | Required    | Conference failure reason              |

### InfoReceived

`InfoReceived: "InfoReceived"`

Triggered when an INFO message is received within a conference.

Listener is called with [ConferenceInfoReceived](/api-reference/websdk5/conference/events/conferenceinforeceived) and payload:

**Parameters**

| Parameter      | Type                     | Requirement | Description                            |
| -------------- | ------------------------ | ----------- | -------------------------------------- |
| `body`         | `string`                 | Required    | Body of an INFO message                |
| `conferenceId` | `string`                 | Required    | Conference id                          |
| `headers`      | `Record<string, string>` | Optional    | Optional headers passed with the event |
| `mimeType`     | `${string}/${string}`    | Required    | MIME type of an INFO message           |

### MessageReceived

`MessageReceived: "MessageReceived"`

Triggered when a message is received within a conference.

Listener is called with [ConferenceMessageReceived](/api-reference/websdk5/conference/events/conferencemessagereceived) and payload:

**Parameters**

| Parameter      | Type     | Requirement | Description            |
| -------------- | -------- | ----------- | ---------------------- |
| `conferenceId` | `string` | Required    | Conference id          |
| `text`         | `string` | Required    | Content of the message |

### ScreenSharingFailed

`ScreenSharingFailed: "ScreenSharingFailed"`

Triggered when screen sharing has failed to start in a conference.

Listener is called with [ConferenceScreenSharingFailed](/api-reference/websdk5/conference/events/conferencescreensharingfailed) and payload:

**Parameters**

| Parameter      | Type                                                                                   | Requirement | Description                              |
| -------------- | -------------------------------------------------------------------------------------- | ----------- | ---------------------------------------- |
| `code`         | [`ScreenSharingFailedCode`](/api-reference/websdk5/conference/screensharingfailedcode) | Required    | Conference screen sharing status code    |
| `conferenceId` | `string`                                                                               | Required    |                                          |
| `reason`       | `string`                                                                               | Required    | Conference screen sharing failure reason |

### ScreenSharingStarted

`ScreenSharingStarted: "ScreenSharingStarted"`

Triggered when screen sharing has started in a conference.

Listener is called with [ConferenceScreenSharingStarted](/api-reference/websdk5/conference/events/conferencescreensharingstarted) and payload:

**Parameters**

| Parameter      | Type     | Requirement | Description   |
| -------------- | -------- | ----------- | ------------- |
| `conferenceId` | `string` | Required    | Conference id |

### StatsReport

`StatsReport: "StatsReport"`

Triggered when conference statistics are available for a conference.

Listener is called with [ConferenceStatsReport](/api-reference/websdk5/conference/events/conferencestatsreport) and payload:

**Parameters**

| Parameter    | Type                                                                                                                                                                                                                                                                                                 | Requirement | Description                                                                                                            |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------- |
| `connection` | [`ConnectionStatsReport`](/api-reference/websdk5/statistics/connectionstatsreport)                                                                                                                                                                                                                   | Required    | Media connectivity statistics                                                                                          |
| `localAudio` | [`LocalAudioStreamStatsReport`](/api-reference/websdk5/statistics/localaudiostreamstatsreport)                                                                                                                                                                                                       | Required    | Statistics for all active outgoing audio streams in a conference at the moment of the statistics collection            |
| `localVideo` | [`LocalVideoStreamStatsReport`](/api-reference/websdk5/statistics/localvideostreamstatsreport)                                                                                                                                                                                                       | Required    | Statistics for all active outgoing video streams in a conference at the moment of the statistics collection            |
| `remote`     | `Record<`[`Endpoint.id`](/api-reference/websdk5/conference/endpoint#id)`, { audio: `[`RemoteAudioStreamStatsReport`](/api-reference/websdk5/statistics/remoteaudiostreamstatsreport)`, video: `[`RemoteVideoStreamStatsReport`](/api-reference/websdk5/statistics/remotevideostreamstatsreport)` }>` | Required    | Endpoint statistics                                                                                                    |
| `timestamp`  | `number`                                                                                                                                                                                                                                                                                             | Required    | Time at which the conference statistics are collected, relative to the UNIX epoch (Jan 1, 1970, UTC), in microseconds. |