Browse Source

feat(analytics): add 'websocket' property

master
paweldomas 6 years ago
parent
commit
470c115e7c
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      react/features/analytics/functions.js

+ 3
- 0
react/features/analytics/functions.js View File

@@ -95,6 +95,9 @@ export function initAnalytics({ getState }: { getState: Function }) {
95 95
                 permanentProperties.group = group;
96 96
             }
97 97
 
98
+            //  Report if user is using websocket
99
+            permanentProperties.websocket = navigator.product !== 'ReactNative' && typeof config.websocket === 'string';
100
+
98 101
             // Optionally, include local deployment information based on the
99 102
             // contents of window.config.deploymentInfo.
100 103
             if (deploymentInfo) {

Loading…
Cancel
Save