dreamstack/compiler
enzotar 392e478351 feat: WebRTC transport — peer-to-peer data channels with auto-fallback
Relay:
- /signal/{channel} path for SDP/ICE exchange via WebSocket
- handle_signaling broadcasts text messages between signaling peers
- signaling_tx broadcast channel in ChannelState
- 46 ds-stream tests (+2 signaling path tests)

JS Runtime:
- _initWebRTC(signalingUrl, streamUrl, mode) with RTCPeerConnection
- Unordered DataChannel (ordered:false, maxRetransmits:0) for low latency
- Auto-fallback: WebSocket starts immediately, WebRTC upgrades in ≤5s
- Data channel override of _streamSend for transparent binary protocol

Parser/AST:
- StreamTransport enum (WebSocket, WebRTC)
- transport field in StreamDecl
- Parses: stream x on url { mode: signal, transport: webrtc }

Codegen:
- WebRTC: emits DS._initWebRTC(sigUrl, streamUrl, mode)
- WebSocket: emits DS._initStream(url, mode) (unchanged)

97 tests, 0 failures
2026-02-25 15:02:31 -08:00
..
ds-analyzer feat(compiler): complete bitstream integration — all 9 changes 2026-02-25 13:26:59 -08:00
ds-cli feat(compiler): full bitstream integration across 7 pipeline stages 2026-02-25 13:13:21 -08:00
ds-codegen feat: WebRTC transport — peer-to-peer data channels with auto-fallback 2026-02-25 15:02:31 -08:00
ds-layout feat(compiler): complete bitstream integration — all 9 changes 2026-02-25 13:26:59 -08:00
ds-parser feat: WebRTC transport — peer-to-peer data channels with auto-fallback 2026-02-25 15:02:31 -08:00
ds-types feat(compiler): full bitstream integration across 7 pipeline stages 2026-02-25 13:13:21 -08:00