five-on-it / packages/protocol/src/transport
packages/protocol/src/transport
The transport abstraction: the game code sends and receives frames, never touching sockets. Phase 1 is a single WebSocket (both channels reliable); phase 2 adds an unreliable WebRTC data channel for inputs and snapshots.