12345678910111213141516171819202122232425262728293031323334353637383940 |
- /**
- * The errors for the connection.
- */
-
- export enum JitsiConnectionErrors {
- /**
- * 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 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 CONNECTION_DROPPED_ERROR = JitsiConnectionErrors.CONNECTION_DROPPED_ERROR;
- export const OTHER_ERROR = JitsiConnectionErrors.OTHER_ERROR;
- export const PASSWORD_REQUIRED = JitsiConnectionErrors.PASSWORD_REQUIRED;
- export const SERVER_ERROR = JitsiConnectionErrors.SERVER_ERROR;
|