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

JitsiConnectionEvents.js 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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';