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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 specified errors.
  19. */
  20. OTHER_ERROR = 'connection.otherError',
  21. /**
  22. * Indicates that a password is required in order to join the conference.
  23. */
  24. PASSWORD_REQUIRED = 'connection.passwordRequired',
  25. /**
  26. * Indicates that the connection was dropped, because of too many 5xx HTTP
  27. * errors on BOSH requests.
  28. */
  29. SERVER_ERROR = 'connection.serverError'
  30. };
  31. // exported for backward compatibility
  32. export const CONNECTION_DROPPED_ERROR = JitsiConnectionErrors.CONNECTION_DROPPED_ERROR;
  33. export const OTHER_ERROR = JitsiConnectionErrors.OTHER_ERROR;
  34. export const PASSWORD_REQUIRED = JitsiConnectionErrors.PASSWORD_REQUIRED;
  35. export const SERVER_ERROR = JitsiConnectionErrors.SERVER_ERROR;