Skip to content

Commit

Permalink
Add os username to information sent by driver (#8)
Browse files Browse the repository at this point in the history
* Add os username to information sent by driver

* Add os type as well
  • Loading branch information
smaspe authored Mar 23, 2021
1 parent 1cbade4 commit 992b85f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ls/wsjsapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import { w3cwebsocket as WebSocket } from 'websocket'
import jsbn from './jsbn';
import os from 'os';

// This version of json parsing doesn't parse numbers into JS Numbers, to avoid loss of precision
var json_parse = (function () {
Expand Down Expand Up @@ -507,8 +508,8 @@ var Exasol = function(url, user, pass, onconnect, onerror) {
"useCompression": false,
"clientName": "EXAJS",
"driverName": "WS",
"clientOs": "Browser",
"clientOsUsername": "N/A",
"clientOs": os.type(),
"clientOsUsername": os.userInfo().username,
"clientVersion": "0.1",
"clientRuntime": "Browser"},
function(response) {
Expand Down

0 comments on commit 992b85f

Please sign in to comment.