@amityco/ts-sdk 7.23.1-44efc442.0 → 7.23.1-5d703da8.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/core/transports/mqtt.ts"],"names":[],"mappings":"AAEA,OAAa,EAAuB,cAAc,EAAsB,UAAU,EAAE,MAAM,MAAM,CAAC;AAgCjG,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/core/transports/mqtt.ts"],"names":[],"mappings":"AAEA,OAAa,EAAuB,cAAc,EAAsB,UAAU,EAAE,MAAM,MAAM,CAAC;AAgCjG,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,cAAc,CAuBjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,gBAkKtD,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -2446,6 +2446,13 @@ var MqttError;
|
|
|
2446
2446
|
const SESSION_EXPIRY_INTERVAL = 0xffffffff;
|
|
2447
2447
|
function getMqttOptions(params) {
|
|
2448
2448
|
return Object.assign({ clean: false, clientId: `mqttjs_ + ${Math.random().toString(16).substring(2, 10)}`, protocolId: 'MQTT', protocolVersion: 5, reconnectPeriod: RETRY_BASE_TIMEOUT, resubscribe: true,
|
|
2449
|
+
// The broker/LB drops idle sockets at ~60s. mqtt.js v5 sends its first
|
|
2450
|
+
// PINGREQ only after a full keepalive period has elapsed, so a 60s keepalive
|
|
2451
|
+
// ties (and loses) that race — the socket is closed just before the ping
|
|
2452
|
+
// fires, giving a close/reconnect loop every 60s. Pinging at half that keeps
|
|
2453
|
+
// the socket busy with a comfortable margin. (mqtt.js v4 kept its default 60
|
|
2454
|
+
// because it rescheduled pings on send; v5 only reschedules on receive.)
|
|
2455
|
+
keepalive: 30,
|
|
2449
2456
|
// Under MQTT 5, `clean: false` alone no longer persists the session — the
|
|
2450
2457
|
// session expiry interval must be set explicitly or it defaults to 0.
|
|
2451
2458
|
properties: {
|
package/dist/index.esm.js
CHANGED
|
@@ -2430,6 +2430,13 @@ var MqttError;
|
|
|
2430
2430
|
const SESSION_EXPIRY_INTERVAL = 0xffffffff;
|
|
2431
2431
|
function getMqttOptions(params) {
|
|
2432
2432
|
return Object.assign({ clean: false, clientId: `mqttjs_ + ${Math.random().toString(16).substring(2, 10)}`, protocolId: 'MQTT', protocolVersion: 5, reconnectPeriod: RETRY_BASE_TIMEOUT, resubscribe: true,
|
|
2433
|
+
// The broker/LB drops idle sockets at ~60s. mqtt.js v5 sends its first
|
|
2434
|
+
// PINGREQ only after a full keepalive period has elapsed, so a 60s keepalive
|
|
2435
|
+
// ties (and loses) that race — the socket is closed just before the ping
|
|
2436
|
+
// fires, giving a close/reconnect loop every 60s. Pinging at half that keeps
|
|
2437
|
+
// the socket busy with a comfortable margin. (mqtt.js v4 kept its default 60
|
|
2438
|
+
// because it rescheduled pings on send; v5 only reschedules on receive.)
|
|
2439
|
+
keepalive: 30,
|
|
2433
2440
|
// Under MQTT 5, `clean: false` alone no longer persists the session — the
|
|
2434
2441
|
// session expiry interval must be set explicitly or it defaults to 0.
|
|
2435
2442
|
properties: {
|