Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

JitsiConnectionEvents.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * The events for the connection.
  3. */
  4. /**
  5. * Indicates that the connection has been disconnected. The event provides
  6. * the following parameters to its listeners:
  7. *
  8. * @param msg {string} a message associated with the disconnect such as the
  9. * last (known) error message
  10. */
  11. export const CONNECTION_DISCONNECTED = 'connection.connectionDisconnected';
  12. /**
  13. * Indicates that the connection has been established. The event provides
  14. * the following parameters to its listeners:
  15. *
  16. * @param id {string} the ID of the local endpoint/participant/peer (within
  17. * the context of the established connection)
  18. */
  19. export const CONNECTION_ESTABLISHED = 'connection.connectionEstablished';
  20. /**
  21. * Indicates that the connection has been failed for some reason. The event
  22. * provides the following parameters to its listeners:
  23. *
  24. * @param errType {JitsiConnectionErrors} the type of error associated with
  25. * the failure
  26. * @param errReason {string} the error (message) associated with the failure
  27. * @param credentials {object} the credentials used to connect (if any)
  28. * @param errReasonDetails {object} an optional object with details about
  29. * the error, like shard moving, suspending. Used for analytics purposes.
  30. */
  31. export const CONNECTION_FAILED = 'connection.connectionFailed';
  32. /**
  33. * Indicates that the performed action cannot be executed because the
  34. * connection is not in the correct state(connected, disconnected, etc.)
  35. */
  36. export const WRONG_STATE = 'connection.wrongState';
  37. /**
  38. * Indicates that the display name is required over this connection and need to be supplied when
  39. * joining the room.
  40. * There are cases like lobby room where display name is required.
  41. */
  42. export const DISPLAY_NAME_REQUIRED = 'connection.display_name_required';