diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-24 12:43:47 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-24 16:45:38 +0200 |
| commit | d60768b3812f30cf4109e2a5dab498d916262572 (patch) | |
| tree | 7059b9cff6efa0270dd87ccc91c90ce8a2fcb86c /CLAUDE.md | |
| parent | db400a438853036cfd3518873ea47beabe304718 (diff) | |
| download | meshbay-d60768b3812f30cf4109e2a5dab498d916262572.tar.gz | |
refactor(node): dispatch MNP messages through a table
The pre-authentication guards stay explicit code, in the same order and
text. After the handshake, a table maps each type to its handler and to
whether it runs as a task, the choice each branch made; the three inline
blocks become StreamingMixin methods, unchanged. The dispatch golden is
identical, including types that are not strings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -887,7 +887,7 @@ here are kept only where they are a rule about *editing* the code. | QUIC transport | `meshbay_node/transport/quic_server.py` | off by default; **must stay at parity with the WebRTC handlers** | | 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 | `transport/webrtc/dispatch.py` — `client_diag` at DEBUG | the player's own view in the node's log; the only window into a phone | +| Stream diagnosis | `transport/webrtc/apps/streaming.py` — `_do_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 | | Keystore | `meshbay_node/keystore.py` | §4.6 | |