nodejs-insta-private-api-mqt 1.3.91 → 1.3.93
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/dist/mqttot/mqttot.client.js +3 -3
- package/dist/dist/realtime/features/error-handler.js +1 -1
- package/dist/dist/realtime/proto/direct-bundle.js +3552 -0
- package/dist/dist/realtime/proto/ig-messages-bundle.js +2249 -0
- package/dist/dist/realtime/proto/iris-bundle.js +7108 -0
- package/dist/dist/realtime/proto-parser.js +167 -86
- package/dist/dist/realtime/protocols/proto-definitions.js +18 -7
- package/dist/dist/realtime/realtime.client.js +70 -7
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ class MQTToTClient extends mqtts_1.MqttClient {
|
|
|
61
61
|
// Register listeners (errors, disconnect, pingresps, etc.)
|
|
62
62
|
this.registerListeners();
|
|
63
63
|
this.requirePayload = options.requirePayload;
|
|
64
|
-
this._keepaliveMs = (typeof options.keepaliveMs === 'number') ? options.keepaliveMs : (
|
|
64
|
+
this._keepaliveMs = (typeof options.keepaliveMs === 'number') ? options.keepaliveMs : (45 * 1000);
|
|
65
65
|
this._consecutivePingFailures = 0;
|
|
66
66
|
this._startKeepalive();
|
|
67
67
|
}
|
|
@@ -69,7 +69,7 @@ class MQTToTClient extends mqtts_1.MqttClient {
|
|
|
69
69
|
try {
|
|
70
70
|
if (this._keepaliveTimer)
|
|
71
71
|
clearInterval(this._keepaliveTimer);
|
|
72
|
-
const jitter = Math.floor(Math.random() *
|
|
72
|
+
const jitter = Math.floor(Math.random() * 5000);
|
|
73
73
|
this._keepaliveTimer = setInterval(() => {
|
|
74
74
|
try {
|
|
75
75
|
if (typeof this.ping === 'function') {
|
|
@@ -147,7 +147,7 @@ class MQTToTClient extends mqtts_1.MqttClient {
|
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
let delay = 3000 + Math.floor(Math.random() * 2000);
|
|
150
|
-
const maxAttempts =
|
|
150
|
+
const maxAttempts = 999;
|
|
151
151
|
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
152
152
|
try {
|
|
153
153
|
this.mqttotDebug(`Reconnect attempt #${attempt + 1} (delay ${delay}ms)`);
|
|
@@ -30,7 +30,7 @@ class ErrorHandler {
|
|
|
30
30
|
constructor(client) {
|
|
31
31
|
this.errorDebug = (0, shared_1.debugChannel)('realtime', 'errors');
|
|
32
32
|
this.errorCount = 0;
|
|
33
|
-
this.maxRetries =
|
|
33
|
+
this.maxRetries = 999;
|
|
34
34
|
this.client = client;
|
|
35
35
|
this.errorHistory = [];
|
|
36
36
|
this.rateLimitUntil = 0;
|