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.

JitsiConnectionEvents.js 1.1KB

1234567891011121314151617181920212223242526272829303132
  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. * proivdes the following parameters to its listeners:
  23. *
  24. * @param err {string} the error (message) associated with the failure
  25. */
  26. export const CONNECTION_FAILED = "connection.connectionFailed";
  27. /**
  28. * Indicates that the perfomed action cannot be executed because the
  29. * connection is not in the correct state(connected, disconnected, etc.)
  30. */
  31. export const WRONG_STATE = "connection.wrongState";