Repository navigation
v0.10.0 — Gun.js Wire Protocol Compatibility Verified
Gun.js ↔ BEAM Bidirectional Interop — Proven ✅
All three Playwright E2E tests pass:
- Gun.js → BEAM — Gun.js puts, BEAM WASM receives ✅
- BEAM → Gun.js — BEAM WASM puts, Gun.js receives ✅
- Bidirectional — Both clients exchange data through BEAM relay ✅
Serialization/Relay Fixes
The wire protocol was always sound. All bugs were in the serialization layer leaking BEAM-internal graph structure to Gun.js wire format:
- ws_server.rs: Internal messages (RegisterQuorum, CheckQuorumTimeouts) no longer relayed to wire clients
- message.rs: BEAM-internal souls (empty root pointer, slash-containing value nodes) skipped in wire serialization
- message.rs: json_str cache cleared before re-serialization to ensure soul filtering applies
- ws_conn.rs: Idiomatic while-let + match receive loop with proper WsMessage variant handling
E2E Test Infrastructure
- Playwright headless browser tests with per-test relay isolation
- Dynamic soul subscription prevents cross-test contamination
- Gun.js served locally for VPN-compatible testing
OPSEC
- Removed hardcoded internal network IP from browser-test pages
- Removed stale duplicate README
- Generated test HTML files gitignored
Test Results
256 lib + 21 CLI + 19 doctests + 3 Playwright E2E = all green
Full Changelog: v0.9.2...v0.10.0