jsgar 4.3.1 → 4.3.2

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.
package/dist/gar.umd.js CHANGED
@@ -35,13 +35,13 @@
35
35
  * Initialize the GAR client.
36
36
  * @param {string} wsEndpoint - WebSocket endpoint (e.g., "ws://localhost:8765")
37
37
  * @param {string} user - Client username for identification
38
- * @param {number} [heartbeatTimeoutInterval=4000] - Heartbeat interval in milliseconds
38
+ * @param {number} [heartbeatTimeoutInterval=60000] - Heartbeat interval in milliseconds
39
39
  * @param {boolean} [allowSelfSignedCertificate=false] - Allow self-signed certificates
40
40
  * @param {string} [logLevel='INFO'] - Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
41
41
  * @param {boolean} [uniqueKeyAndRecordUpdates=false] - Only one update per key/record
42
42
  * @param {string} [token=null] - Token for authenticated connections (appended as ?token= query param)
43
43
  */
44
- constructor(wsEndpoint, user, working_namespace = null, heartbeatTimeoutInterval = 4000, allowSelfSignedCertificate = false, logLevel = 'INFO', uniqueKeyAndRecordUpdates = false, token = null) {
44
+ constructor(wsEndpoint, user, working_namespace = null, heartbeatTimeoutInterval = 60000, allowSelfSignedCertificate = false, logLevel = 'INFO', uniqueKeyAndRecordUpdates = false, token = null) {
45
45
  this.wsEndpoint = token ? `${wsEndpoint}${wsEndpoint.includes('?') ? '&' : '?'}token=${token}` : wsEndpoint;
46
46
  this.websocket = null;
47
47
  this.messageQueue = [];
package/gar.js CHANGED
@@ -29,13 +29,13 @@ class GARClient {
29
29
  * Initialize the GAR client.
30
30
  * @param {string} wsEndpoint - WebSocket endpoint (e.g., "ws://localhost:8765")
31
31
  * @param {string} user - Client username for identification
32
- * @param {number} [heartbeatTimeoutInterval=4000] - Heartbeat interval in milliseconds
32
+ * @param {number} [heartbeatTimeoutInterval=60000] - Heartbeat interval in milliseconds
33
33
  * @param {boolean} [allowSelfSignedCertificate=false] - Allow self-signed certificates
34
34
  * @param {string} [logLevel='INFO'] - Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
35
35
  * @param {boolean} [uniqueKeyAndRecordUpdates=false] - Only one update per key/record
36
36
  * @param {string} [token=null] - Token for authenticated connections (appended as ?token= query param)
37
37
  */
38
- constructor(wsEndpoint, user, working_namespace = null, heartbeatTimeoutInterval = 4000, allowSelfSignedCertificate = false, logLevel = 'INFO', uniqueKeyAndRecordUpdates = false, token = null) {
38
+ constructor(wsEndpoint, user, working_namespace = null, heartbeatTimeoutInterval = 60000, allowSelfSignedCertificate = false, logLevel = 'INFO', uniqueKeyAndRecordUpdates = false, token = null) {
39
39
  this.wsEndpoint = token ? `${wsEndpoint}${wsEndpoint.includes('?') ? '&' : '?'}token=${token}` : wsEndpoint;
40
40
  this.websocket = null;
41
41
  this.messageQueue = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsgar",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "A Javascript client for the GAR protocol",
5
5
  "type": "module",
6
6
  "main": "dist/gar.umd.js",