Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(rn,config) use WebSockets for XMPP by default on mobile

Saúl Ibarra Corretgé0368b4d671db
diff --git a/config.js b/config.js
index 5b6675c02e..d9e432043f 100644
--- a/config.js
+++ b/config.js
@@ -91,9 +91,6 @@ var config = {
// Enables supports for AV1 codec.
// enableAv1Support: false,
- // Enables XMPP WebSocket (as opposed to BOSH) for the given amount of users.
- // mobileXmppWsThreshold: 10, // enable XMPP WebSockets on mobile for 10% of the users
-
// P2P test mode disables automatic switching to P2P when there are 2
// participants in the conference.
// p2pTestMode: false,
diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.ts
index 20e6dd5d69..5c2bb58515 100644
--- a/react/features/base/config/configType.ts
+++ b/react/features/base/config/configType.ts
@@ -544,7 +544,6 @@ export interface IConfig {
assumeBandwidth?: boolean;
disableE2EE?: boolean;
dumpTranscript?: boolean;
- mobileXmppWsThreshold?: number;
noAutoPlayVideo?: boolean;
p2pTestMode?: boolean;
skipInterimTranscriptions?: boolean;
diff --git a/react/features/base/connection/actions.any.ts b/react/features/base/connection/actions.any.ts
index 4b17512983..6abd593e28 100644
--- a/react/features/base/connection/actions.any.ts
+++ b/react/features/base/connection/actions.any.ts
@@ -126,13 +126,6 @@ export function constructOptions(state: IReduxState) {
const { bosh, preferBosh, flags } = options;
let { websocket } = options;
- // TESTING: Only enable WebSocket for some percentage of users.
- if (websocket && navigator.product === 'ReactNative') {
- if ((Math.random() * 100) >= (options?.testing?.mobileXmppWsThreshold ?? 0)) {
- websocket = undefined;
- }
- }
-
if (preferBosh) {
websocket = undefined;
}