summaryrefslogtreecommitdiffstats
path: root/CLAUDE.md
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-24 12:12:15 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-24 16:45:38 +0200
commitf453cd39ef0fec606b3d1a67b3fae5fa96e719f9 (patch)
treea64162ae8579ac275ad9b91822290920e150568f /CLAUDE.md
parentfedb0f2afa552747a45b6b7c362a7977923e67ff (diff)
downloadmeshbay-f453cd39ef0fec606b3d1a67b3fae5fa96e719f9.tar.gz
refactor(node): move the session core out of webrtc_server
SessionCore in transport/webrtc/core.py, last among the bases: state, the data channel, task ownership, the peer registry, sending and teardown. The facade keeps _dispatch_message and WebRTCTransport. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
-rw-r--r--CLAUDE.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index a062a5e..fee4b73 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -885,8 +885,8 @@ here are kept only where they are a rule about *editing* the code.
| Uploads, resume state | `meshbay_node/uploads.py` | §6.4 |
| WebRTC transport and every MNP handler | `meshbay_node/transport/webrtc_server.py` | the big one; framing, shared limits and one-shot ffmpeg jobs are in `transport/webrtc/`, handlers for one app only in `transport/webrtc/apps/` |
| QUIC transport | `meshbay_node/transport/quic_server.py` | off by default; **must stay at parity with the WebRTC handlers** |
-| Background tasks (node) | `webrtc_server.py` — `_spawn()` | the only way to start one; a bare `ensure_future` can be collected |
-| Stream handover, backpressure | `transport/webrtc/apps/streaming.py` — `_replace_stream`; `webrtc/files.py` — `DOWNLOAD_BUFFER_HIGH`; `webrtc_server.py` — `shutdown_tasks` | §8.5 |
+| Background tasks (node) | `transport/webrtc/core.py` — `_spawn()` | the only way to start one; a bare `ensure_future` can be collected |
+| Stream handover, backpressure | `transport/webrtc/apps/streaming.py` — `_replace_stream`; `webrtc/files.py` — `DOWNLOAD_BUFFER_HIGH`; `webrtc/core.py` — `shutdown_tasks` | §8.5 |
| Stream diagnosis | `webrtc_server.py` — `client_diag` at DEBUG | the player's own view in the node's log; the only window into a phone |
| Chat store and paging | `meshbay_node/chat/store.py` | `get_recent`/`get_before`/`has_before`; `get_messages` pages *forwards* and is not what a chat opens with |
| Chat epochs | `meshbay_node/ops.py` — `open_chat_epoch`, `ensure_chat_epoch`, `chat_epoch_keys` | §4.5 |