diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-25 11:28:31 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-25 12:07:49 +0200 |
| commit | b7bf11c077bdd165400cf8d80c5cd1ad4248d854 (patch) | |
| tree | e80590cd7b798e21a4ac663fd1e653a66e5f3b34 /packages/meshbay-hub/src/meshbay_hub/api | |
| parent | 6348698322e5bfcb80d0ef0dcd833ba4e6179640 (diff) | |
| download | meshbay-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 'packages/meshbay-hub/src/meshbay_hub/api')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/api/webapp.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/api/webapp.py b/packages/meshbay-hub/src/meshbay_hub/api/webapp.py index 054d04a..626c639 100644 --- a/packages/meshbay-hub/src/meshbay_hub/api/webapp.py +++ b/packages/meshbay-hub/src/meshbay_hub/api/webapp.py @@ -192,6 +192,15 @@ _HTML = """\ <script src="/a/{v}/keyderive.js"></script> <script src="/a/{v}/crypto.js"></script> <script src="/a/{v}/transport.js"></script> + <script src="/a/{v}/transport-codec.js"></script> + <script src="/a/{v}/transport-roster.js"></script> + <script src="/a/{v}/transport-pins.js"></script> + <script src="/a/{v}/transport-chat.js"></script> + <script src="/a/{v}/transport-media.js"></script> + <script src="/a/{v}/transport-admin.js"></script> + <script src="/a/{v}/transport-upload.js"></script> + <script src="/a/{v}/transport-devices.js"></script> + <script src="/a/{v}/transport-rewrap.js"></script> <script type="module" src="/a/{v}/app.js"></script> </body> </html> |