This is mostly a copy of ambiso/bevy_websocket_example: https://github.com/ambiso/bevy_websocket_example/tree/main It demonstrates how to hold and use a (Tungstenite) WebSocket in a Bevy app. I've altered it slightly (and skipped impl'ing the send function) to fit my own chatroom dummy target. This is completely useless as a chatroom app, but it's not supposed to be one. Now I can move on to building the actual Pong game!
11 lines
265 B
TOML
11 lines
265 B
TOML
[package]
|
|
name = "pong-client"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
bevy = { version = "0.17.2", features = ["serialize"] }
|
|
rustls = "0.23.33"
|
|
thiserror = "2.0.17"
|
|
tungstenite = { version = "0.28.0", features = ["rustls-tls-webpki-roots", "rustls"] }
|