You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JitsiConnectionErrors.ts 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * The errors for the connection.
  3. */
  4. export enum JitsiConnectionErrors {
  5. /**
  6. * Indicates that the connection was dropped with an error which was most likely
  7. * caused by some networking issues. The dropped term in this context means that
  8. * the connection was closed unexpectedly (not on user's request).
  9. *
  10. * One example is 'item-not-found' error thrown by Prosody when the BOSH session
  11. * times out after 60 seconds of inactivity. On the other hand 'item-not-found'
  12. * could also happen when BOSH request is sent to the server with the session-id
  13. * that is not know to the server. But this should not happen in lib-jitsi-meet
  14. * case as long as the service is configured correctly (there is no bug).
  15. */
  16. CONNECTION_DROPPED_ERROR = 'connection.droppedError',
  17. /**
  18. * Not ready error. When the conference error is not ready according to jicofo.
  19. */
  20. NOT_LIVE_ERROR = 'connection.notLiveError',
  21. /**
  22. * Not specified errors.
  23. */
  24. OTHER_ERROR = 'connection.otherError',
  25. /**
  26. * Indicates that a password is required in order to join the conference.
  27. */
  28. PASSWORD_REQUIRED = 'connection.passwordRequired',
  29. /**
  30. * Indicates that the connection was dropped, because of too many 5xx HTTP
  31. * errors on BOSH requests.
  32. */
  33. SERVER_ERROR = 'connection.serverError'
  34. };
  35. // exported for backward compatibility
  36. export const CONNECTION_DROPPED_ERROR = JitsiConnectionErrors.CONNECTION_DROPPED_ERROR;
  37. export const NOT_LIVE_ERROR = JitsiConnectionErrors.NOT_LIVE_ERROR;
  38. export const OTHER_ERROR = JitsiConnectionErrors.OTHER_ERROR;
  39. export const PASSWORD_REQUIRED = JitsiConnectionErrors.PASSWORD_REQUIRED;
  40. export const SERVER_ERROR = JitsiConnectionErrors.SERVER_ERROR;