Files
upstream-jitsi-meet/react/features/base/testing/actions.ts
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

29 lines
983 B
TypeScript

import { SET_CONNECTION_STATE } from './actionTypes';
// eslint-disable-next-line jsdoc/require-description-complete-sentence
/**
* Sets the conference connection state of the testing feature.
*
* @param {string} connectionState - This is the lib-jitsi-meet event name. Can
* be one of (with the string values at the time of this writing):
* <li>{@link JitsiConferenceEvents.CONNECTION_ESTABLISHED}
* - ("conference.connectionEstablished"</li>
* <li>{@link JitsiConferenceEvents.CONNECTION_INTERRUPTED}
* - ("conference.connectionInterrupted")</li>
* <li>{@link JitsiConferenceEvents.CONNECTION_RESTORED}
* - ("conference.connectionRestored")</li>
* In the reducer the value will be an empty string until first event is
* received.
*
* @returns {{
* type: SET_CONNECTION_STATE,
* connectionState: string
* }}
*/
export function setConnectionState(connectionState: string) {
return {
type: SET_CONNECTION_STATE,
connectionState
};
}