feat(analytics): add 'websocket' property

This commit is contained in:
paweldomas 2020-01-24 14:43:42 -06:00 committed by Paweł Domas
parent d9cf7aef3a
commit 470c115e7c
1 changed files with 3 additions and 0 deletions

View File

@ -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) {