Skip to content

Commit

Permalink
feat(analytics): add 'websocket' property
Browse files Browse the repository at this point in the history
  • Loading branch information
paweldomas committed Jan 24, 2020
1 parent d9cf7ae commit 470c115
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions react/features/analytics/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 470c115

Please sign in to comment.