mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-29 11:13:05 +00:00
Implement the mux framing protocol in Kotlin (matching the Rust relay's wire format) and add integration tests that verify the protocol over WebSocket against a mock relay server. Tunnel module additions: - Frame/FrameType/ErrorCode: mux protocol encode/decode (5-byte header) - CertificateStore interface: device cert abstraction for TLS - TunnelClient/TunnelState/TunnelError/MuxStream interfaces - 12 unit tests for frame encode/decode and wire format compatibility Integration test module (pure JVM, no Android deps): - MockRelayServer: Ktor WebSocket server speaking mux protocol - 7 integration tests covering all 5 test scenarios (IDs 100-104): connection establishment, OPEN/DATA/CLOSE round-trip, concurrent streams, ERROR frame parsing, graceful shutdown, device-initiated close, and large payload integrity BLOCKERS.md documents why real relay integration is not yet possible: the relay binary does not bind a TCP listener, /ws is a stub, and mTLS is not configured. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src/test/kotlin/com/rousecontext/tunnel/integration | ||
| BLOCKERS.md | ||
| build.gradle.kts | ||