-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
JitsiConnectionErrors.ts
52 lines (45 loc) · 1.96 KB
/
JitsiConnectionErrors.ts
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
41
42
43
44
45
46
47
48
49
50
51
52
/**
* The errors for the connection.
*/
export enum JitsiConnectionErrors {
/**
* When the conference-request to jicofo fails.
*/
CONFERENCE_REQUEST_FAILED = "connection.conferenceRequestFailed",
/**
* Indicates that the connection was dropped with an error which was most likely
* caused by some networking issues. The dropped term in this context means that
* the connection was closed unexpectedly (not on user's request).
*
* One example is 'item-not-found' error thrown by Prosody when the BOSH session
* times out after 60 seconds of inactivity. On the other hand 'item-not-found'
* could also happen when BOSH request is sent to the server with the session-id
* that is not know to the server. But this should not happen in lib-jitsi-meet
* case as long as the service is configured correctly (there is no bug).
*/
CONNECTION_DROPPED_ERROR = 'connection.droppedError',
/**
* Not ready error. When the conference error is not ready according to jicofo.
*/
NOT_LIVE_ERROR = 'connection.notLiveError',
/**
* Not specified errors.
*/
OTHER_ERROR = 'connection.otherError',
/**
* Indicates that a password is required in order to join the conference.
*/
PASSWORD_REQUIRED = 'connection.passwordRequired',
/**
* Indicates that the connection was dropped, because of too many 5xx HTTP
* errors on BOSH requests.
*/
SERVER_ERROR = 'connection.serverError'
};
// exported for backward compatibility
export const CONFERENCE_REQUEST_FAILED = JitsiConnectionErrors.CONFERENCE_REQUEST_FAILED;
export const CONNECTION_DROPPED_ERROR = JitsiConnectionErrors.CONNECTION_DROPPED_ERROR;
export const NOT_LIVE_ERROR = JitsiConnectionErrors.NOT_LIVE_ERROR;
export const OTHER_ERROR = JitsiConnectionErrors.OTHER_ERROR;
export const PASSWORD_REQUIRED = JitsiConnectionErrors.PASSWORD_REQUIRED;
export const SERVER_ERROR = JitsiConnectionErrors.SERVER_ERROR;