aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-25 11:28:31 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-25 12:07:49 +0200
commitb7bf11c077bdd165400cf8d80c5cd1ad4248d854 (patch)
treee80590cd7b798e21a4ac663fd1e653a66e5f3b34 /docs
parent6348698322e5bfcb80d0ef0dcd833ba4e6179640 (diff)
downloadmeshbay-b7bf11c077bdd165400cf8d80c5cd1ad4248d854.tar.gz
refactor(client): split transport.js into classic scripts
transport.js keeps the core (connection, reconnect, leases, dispatch). Chat, media, admin, upload and device methods move, cut as text, into transport-*.js scripts that hand a class of their own to extendTransport, which copies each method onto MeshBayTransport.prototype; the codec, roster checks, node pins and the rewrap fan-out move as they were. Both shells load them after transport.js. Every prototype member, class property and top-level function has the same source text as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/transfers-v1.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/transfers-v1.md b/docs/transfers-v1.md
index e9caadb..a07d7d6 100644
--- a/docs/transfers-v1.md
+++ b/docs/transfers-v1.md
@@ -238,7 +238,7 @@ function asked:
|---|---|---|---|
| Thumbnails, TMDB posters, cover art, cached audio transcodes | `MediaThumb` (`video-app.js:204`), and the Music/Photos grids through it | a **media-cache id**, not an index entry — `_try_serve_thumbnail`, `webrtc/files.py` | **Never leased, never counted, never queued.** One chunk each, out of a bounded cache the node built itself |
| Looking at one file — a photo opened full size, a PDF, an image, a text file | `PhotoViewer` (`photos-app.js:171`), the Files preview modal (`files-app.js:610`) | a real index entry, fetched whole | **Not leased.** Bounded by §3.4.1 below, which no real viewer ever reaches |
-| Downloading, and uploading | `downloadEntry`, `downloadDirectory` (`file-utils.js`), `uploadFile` (`transport.js:2192`) | a real index entry | **Leased.** These are exactly the three call sites that go through `transfers.start()` — the three that produce a row in the transfers widget |
+| Downloading, and uploading | `downloadEntry`, `downloadDirectory` (`file-utils.js`), `uploadFile` (`transport-upload.js`) | a real index entry | **Leased.** These are exactly the three call sites that go through `transfers.start()` — the three that produce a row in the transfers widget |
The last column is the whole rule, and it is worth stating as a sentence
someone can check by reading: **a transfer is something the transfers widget