jsgar 1.4.2 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/gar.umd.js +4 -2
  2. package/package.json +1 -1
package/dist/gar.umd.js CHANGED
@@ -41,13 +41,14 @@
41
41
  * @param {boolean} [allowSelfSignedCertificate=false] - Allow self-signed certificates
42
42
  * @param {string} [logLevel='INFO'] - Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
43
43
  */
44
- constructor(wsEndpoint, user, heartbeatInterval = 4000, allowSelfSignedCertificate = false, logLevel = 'INFO') {
44
+ constructor(wsEndpoint, user, working_namespace = null, heartbeatInterval = 4000, allowSelfSignedCertificate = false, logLevel = 'INFO') {
45
45
  this.wsEndpoint = wsEndpoint;
46
46
  this.websocket = null;
47
47
  this.messageQueue = [];
48
48
  this.connected = false;
49
49
  this.reconnectDelay = 5000; // Milliseconds
50
50
  this.user = user;
51
+ this.working_namespace = working_namespace;
51
52
  this.heartbeatInterval = heartbeatInterval;
52
53
  this.version = 650269;
53
54
 
@@ -426,7 +427,8 @@
426
427
  value: {
427
428
  version: this.version,
428
429
  heartbeat_timeout_interval: this.heartbeatInterval,
429
- user: this.user
430
+ user: this.user,
431
+ working_namespace: this.working_namespace
430
432
  }
431
433
  };
432
434
  this.sendMessage(introMsg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsgar",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "A Javascript client for the GAR protocol",
5
5
  "type": "module",
6
6
  "main": "dist/gar.umd.js",