diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-07 11:50:48 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-07 11:50:48 +0200 |
| commit | 00caeb3e10bfbf86892e7f31ad81f91ce8e50da7 (patch) | |
| tree | cc9b9bf52377fb379a0eb41c14da50050b308ded /packages/meshbay-hub/src/meshbay_hub/static/transport.js | |
| parent | 219093c823494bc8d760c99a7a55c4a23059abb5 (diff) | |
| download | meshbay-00caeb3e10bfbf86892e7f31ad81f91ce8e50da7.tar.gz | |
fix(hub): let a download wait out a reconnect instead of failing
Chunks sent while the reconnect's connect() runs throw at once, and six
retries 1.5 s apart ran out before the reconnect landed. Wait for it, up
to two minutes, without spending retries. Follow-ups parked in §15.3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/transport.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/transport.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js index 5ed6fa9..9dcea4f 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js @@ -621,6 +621,8 @@ class MeshBayTransport { } get connected() { return this._connected; } + /** True while _reconnectLoop is running, backoff included. */ + get reconnecting() { return !!this._reconnectPromise; } set onChat(fn) { this._onChat = fn; } set onStreamInit(fn) { this._onStreamInit = fn; } |