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.

constants.js 967B

12345678910111213141516171819
  1. // @flow
  2. /**
  3. * The name of the {@code JitsiConnection} property which identifies the {@code JitsiConference} currently associated
  4. * with it.
  5. *
  6. * FIXME: This is a hack. It was introduced to solve the following case: if a user presses hangup quickly, they may
  7. * "leave the conference" before the actual conference was ever created. While we might have a connection in place,
  8. * there is no conference which can be left, thus no CONFERENCE_LEFT action will ever be fired.
  9. *
  10. * This is problematic because the external API module used to send events to the native SDK won't know what to send.
  11. * So, in order to detect this situation we are attaching the conference object to the connection which runs it.
  12. */
  13. export const JITSI_CONNECTION_CONFERENCE_KEY = Symbol('conference');
  14. /**
  15. * The name of the {@code JitsiConnection} property which identifies the location URL where the connection will be made.
  16. */
  17. export const JITSI_CONNECTION_URL_KEY = Symbol('url');