Skip to main content

flame_multiplayer_dashwire 0.1.0 copy "flame_multiplayer_dashwire: ^0.1.0" to clipboard
flame_multiplayer_dashwire: ^0.1.0 copied to clipboard

A dashwire connection as a flame_multiplayer wire: rooms, rollback play, turns and ghosts over dashwire's WebSocket, loopback or simulated network, reliable and unreliable delivery kept apart.

flame_multiplayer_dashwire #

A dashwire connection as a flame_multiplayer wire.

final wire = DashwireWire(await connectWebSocket(roomUri));
final room = PeerRoom(wire, slot: 0);

A reliable message goes on dashwire's reliable channel and an unreliable one on its unreliable channel, so a rollback frame or a ghost's position is not held up behind a lost packet on a transport that has both. Messages travel as JSON in UTF-8.

dashwire's own LoopbackConnection and SimulatorConnection work too, and the simulator — latency, jitter, loss and duplication — is a harder test than flame_multiplayer's loopback: this package's tests run a rollback, a handshake and a turn through it.

dashwire's WebSocket sends binary frames, and flutter3d_net's relay passes them on as they are, so two games connected through dashwire meet in a room of that relay. One test starts the relay and checks exactly that.

A package of its own so that flame_multiplayer keeps no dependencies, and a game that talks through flutter3d_net does not carry dashwire as well.

0
likes
140
points
207
downloads

Documentation

API reference

Publisher

verified publisherpleion.dev

Weekly Downloads

A dashwire connection as a flame_multiplayer wire: rooms, rollback play, turns and ghosts over dashwire's WebSocket, loopback or simulated network, reliable and unreliable delivery kept apart.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#game-development #flame #networking #multiplayer

License

MIT (license)

Dependencies

dashwire, flame_multiplayer

More

Packages that depend on flame_multiplayer_dashwire