feat(utilities): WS device type
This commit is contained in:
parent
5c5086fcc7
commit
a6af2cfb46
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ function extractSessionInfo(socket) {
|
|||
socket.handshake.query.sessionInfo.userBrowser = ua.browser.name || null;
|
||||
socket.handshake.query.sessionInfo.userBrowserVersion = ua.browser.version || null;
|
||||
socket.handshake.query.sessionInfo.userDevice = ua.device.model || null;
|
||||
socket.handshake.query.sessionInfo.userDeviceType = ua.device.type || (ua.device.model ? null : 'desktop');
|
||||
socket.handshake.query.sessionInfo.userDeviceType = ua.device.type || 'desktop';
|
||||
socket.handshake.query.sessionInfo.userCountry = null;
|
||||
|
||||
const options = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue