mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Updated websocket example to improve clarity and to be more distinct from chat example (#1637)
Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
co-authored by
David Pedersen
parent
d11af167ca
commit
8d92902c8e
@@ -6,8 +6,20 @@ publish = false
|
||||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum", features = ["ws", "headers"] }
|
||||
futures = "0.3"
|
||||
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
|
||||
headers = "0.3"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tokio-tungstenite = "0.18.0"
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower-http = { version = "0.3.0", features = ["fs", "trace"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
[[bin]]
|
||||
name = "example-websockets"
|
||||
path = "src/main.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "example-client"
|
||||
path = "src/client.rs"
|
||||
|
||||
Reference in New Issue
Block a user