forked from jitsi/lib-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JitsiConnectionEvents.js
40 lines (36 loc) · 1.45 KB
/
JitsiConnectionEvents.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* The events for the connection.
*/
/**
* Indicates that the connection has been disconnected. The event provides
* the following parameters to its listeners:
*
* @param msg {string} a message associated with the disconnect such as the
* last (known) error message
*/
export const CONNECTION_DISCONNECTED = 'connection.connectionDisconnected';
/**
* Indicates that the connection has been established. The event provides
* the following parameters to its listeners:
*
* @param id {string} the ID of the local endpoint/participant/peer (within
* the context of the established connection)
*/
export const CONNECTION_ESTABLISHED = 'connection.connectionEstablished';
/**
* Indicates that the connection has been failed for some reason. The event
* provides the following parameters to its listeners:
*
* @param errType {JitsiConnectionErrors} the type of error associated with
* the failure
* @param errReason {string} the error (message) associated with the failure
* @param credentials {object} the credentials used to connect (if any)
* @param errReasonDetails {object} an optional object with details about
* the error, like shard moving, suspending. Used for analytics purposes.
*/
export const CONNECTION_FAILED = 'connection.connectionFailed';
/**
* Indicates that the performed action cannot be executed because the
* connection is not in the correct state(connected, disconnected, etc.)
*/
export const WRONG_STATE = 'connection.wrongState';