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.

actions.js 996B

123456789101112131415161718192021222324252627282930
  1. /* @flow */
  2. import { SET_CONNECTION_STATE } from './actionTypes';
  3. // eslint-disable-next-line jsdoc/require-description-complete-sentence
  4. /**
  5. * Sets the conference connection state of the testing feature.
  6. *
  7. * @param {string} connectionState - This is the lib-jitsi-meet event name. Can
  8. * be one of (with the string values at the time of this writing):
  9. * <li>{@link JitsiConferenceEvents.CONNECTION_ESTABLISHED}
  10. * - ("conference.connectionEstablished"</li>
  11. * <li>{@link JitsiConferenceEvents.CONNECTION_INTERRUPTED}
  12. * - ("conference.connectionInterrupted")</li>
  13. * <li>{@link JitsiConferenceEvents.CONNECTION_RESTORED}
  14. * - ("conference.connectionRestored")</li>
  15. * In the reducer the value will be an empty string until first event is
  16. * received.
  17. *
  18. * @returns {{
  19. * type: SET_CONNECTION_STATE,
  20. * connectionState: string
  21. * }}
  22. */
  23. export function setConnectionState(connectionState: string) {
  24. return {
  25. type: SET_CONNECTION_STATE,
  26. connectionState
  27. };
  28. }