Skip to main content

JitsiConnectionEvents

Events related to the XMPP connection lifecycle, authentication, and connection properties.

CONNECTION_ESTABLISHED

Event: connection.connectionEstablished Fires when the connection to the XMPP server has been successfully established.
string
The ID of the local endpoint/participant/peer within the context of the established connection

CONNECTION_FAILED

Event: connection.connectionFailed Fires when the connection attempt has failed.
JitsiConnectionErrors
The type of error associated with the failure
string
The error message associated with the failure
object
The credentials used to connect (if any)
object
Optional object with details about the error, like shard moving or suspending. Used for analytics purposes.

CONNECTION_DISCONNECTED

Event: connection.connectionDisconnected Fires when the connection has been disconnected.
string
A message associated with the disconnect, such as the last known error message

CONNECTION_REDIRECTED

Event: connection.redirected Fires when the connection is redirected to a visitor node.

CONNECTION_TOKEN_EXPIRED

Event: connection.token_expired Fires when the connection is trying to resume but the authentication token has expired.

DISPLAY_NAME_REQUIRED

Event: connection.display_name_required Fires when the display name is required over this connection and must be supplied when joining the room. This occurs in cases like lobby rooms where display name is mandatory.

PROPERTIES_UPDATED

Event: connection.propertiesUpdated Fires when the connection properties have been updated.
object
All available connection properties (e.g., shard, region)