aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/src/meshbay_node/platform.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(node): select the Windows-compatible event loop before asyncio.runChristophe Besson2026-09-041-0/+19
| | | | | | | | | | | | | aiortc's ICE stack does not run on Windows' default ProactorEventLoop -- a DataChannel handshake never completes. `platform.use_compatible_event_loop()` switches to the SelectorEventLoop on win32, called at the top of `main()` before `asyncio.run()`. No-op off Windows. Known cost, for when the node runs on Windows: the SelectorEventLoop cannot spawn subprocesses, so ffmpeg streaming (asyncio.create_subprocess_exec in webrtc_server.py) needs a thread-based runner there. Tracked separately. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* refactor(node): platform abstraction for Windows portability (W1-W2-W5-W6-W7)Christophe Besson2026-09-031-0/+70
Platform directories, signal handling, chmod guards, ffmpeg discovery, and platform-conditional CLI messages โ€” all testable on Linux. See docs/WINDOWS-PORT.md ยง5 for the plan these implement. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>