From 470c115e7ca6436b7a072110155ccaeec0d7fdaa Mon Sep 17 00:00:00 2001 From: paweldomas Date: Fri, 24 Jan 2020 14:43:42 -0600 Subject: [PATCH] feat(analytics): add 'websocket' property --- react/features/analytics/functions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/react/features/analytics/functions.js b/react/features/analytics/functions.js index 05a86f4f1..757ec5f91 100644 --- a/react/features/analytics/functions.js +++ b/react/features/analytics/functions.js @@ -95,6 +95,9 @@ export function initAnalytics({ getState }: { getState: Function }) { permanentProperties.group = group; } + // Report if user is using websocket + permanentProperties.websocket = navigator.product !== 'ReactNative' && typeof config.websocket === 'string'; + // Optionally, include local deployment information based on the // contents of window.config.deploymentInfo. if (deploymentInfo) {