diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-04 01:47:34 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-04 01:47:34 +0200 |
| commit | 2e819f7c5e0fb6352908ca88ff09b3465023767c (patch) | |
| tree | e19138228ea188f47eafae3ba1e0eb1cb721eb09 /packages/meshbay-node/src/meshbay_node/ui | |
| parent | a5255ec984098579d400a631fdf3a2571cb0ca79 (diff) | |
| download | meshbay-2e819f7c5e0fb6352908ca88ff09b3465023767c.tar.gz | |
fix(node): select the Windows-compatible event loop before asyncio.run
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>
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/ui')
0 files changed, 0 insertions, 0 deletions