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 +2 -2
- package/gar.js +2 -2
- package/package.json +1 -1
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=
|
|
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 =
|
|
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=
|
|
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 =
|
|
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 = [];
|