您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

JitsiConnectionErrors.ts 2.2KB

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