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

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Enumeration with the events for the connection.
  3. * @type {{string: string}}
  4. */
  5. var JitsiConnnectionEvents = {
  6. /**
  7. * Indicates that the connection has been failed for some reason. The event
  8. * proivdes the following parameters to its listeners:
  9. *
  10. * @param err {string} the error (message) associated with the failure
  11. */
  12. CONNECTION_FAILED: "connection.connectionFailed",
  13. /**
  14. * Indicates that the connection has been established. The event provides
  15. * the following parameters to its listeners:
  16. *
  17. * @param id {string} the ID of the local endpoint/participant/peer (within
  18. * the context of the established connection)
  19. */
  20. CONNECTION_ESTABLISHED: "connection.connectionEstablished",
  21. /**
  22. * Indicates that the connection has been disconnected. The event provides
  23. * the following parameters to its listeners:
  24. *
  25. * @param msg {string} a message associated with the disconnect such as the
  26. * last (known) error message
  27. */
  28. CONNECTION_DISCONNECTED: "connection.connectionDisconnected",
  29. /**
  30. * Indicates that the perfomed action cannot be executed because the
  31. * connection is not in the correct state(connected, disconnected, etc.)
  32. */
  33. WRONG_STATE: "connection.wrongState"
  34. };
  35. module.exports = JitsiConnnectionEvents;