record userAgent and os data for websocket connections