dashwire 0.1.0
dashwire: ^0.1.0 copied to clipboard
Multiplayer networking for Dart games. Transport, session, and tick core.
dashwire #
Multiplayer networking for Dart games. The transport, session, and tick core of the dashwire family, engine-agnostic and usable from any Dart or Flutter project.
This package provides:
- Wire primitives:
ByteWriter/ByteReader(little-endian, varints, f32, length-prefixed strings) and a 32-bitfnv1a32name hash. - A transport abstraction (
Channel,NetMessage,WireConnection) with loopback and WebSocket transports (native and web) and a network conditionSimulatorConnectionfor latency, jitter, loss, and duplication. - A versioned session handshake with peer-id assignment and per-connection
ByteBudgetaccounting. NetClockserver-tick synchronization and a fixed-timestepTickLoop.
Replicated state lives in dashwire_replication; a reliable UDP transport lives in dashwire_udp.
Compatibility #
Pure Dart, no Flutter dependency. Compiles for native, dart2js, and dart2wasm.