@oxidezap/baileyrs 0.2.6 → 0.2.7
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/README.md +8 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -295,6 +295,14 @@ What to do instead:
|
|
|
295
295
|
tens of minutes rather than seconds, and have it alert a human instead of
|
|
296
296
|
killing the process. A shorter one fires on a backoff that was about to
|
|
297
297
|
succeed.
|
|
298
|
+
- Know what your own calls do meanwhile. A call issued while the engine is
|
|
299
|
+
reconnecting no longer fails fast: it parks and goes out when the connection
|
|
300
|
+
lands, which on the ladder above can be tens of minutes. That is the point,
|
|
301
|
+
since the alternative was an error indistinguishable from a finished session,
|
|
302
|
+
but it means a call you issue during `connecting` is a call you are committing
|
|
303
|
+
to. Racing it against your own deadline bounds your waiting and not the work:
|
|
304
|
+
the call still goes out when the reconnect lands, so a retry after the
|
|
305
|
+
deadline sends it twice unless you pinned `messageId`.
|
|
298
306
|
- Fix the cause on your side: send less. The engine restores the connection,
|
|
299
307
|
but it does not pace your traffic, and the traffic is what earned the `429`.
|
|
300
308
|
Queueing, throttling and deferral are yours to decide, the same as upstream.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxidezap/baileyrs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.7",
|
|
5
5
|
"description": "A Rust-powered WhatsApp Web library for JavaScript, with a Baileys-compatible API",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@hapi/boom": "^9.1.4",
|
|
85
|
-
"@oxidezap/whatsapp-rust-bridge": "0.
|
|
85
|
+
"@oxidezap/whatsapp-rust-bridge": "0.17.0",
|
|
86
86
|
"long": "^5.3.2",
|
|
87
87
|
"pino": "^10.3.1",
|
|
88
88
|
"protobufjs": "^7.6.5"
|