Add example of how to test WebSockets (#1535)

This commit is contained in:
David Pedersen
2022-11-18 15:40:21 +01:00
committed by GitHub
parent 7d58d49817
commit 468985373a
2 changed files with 161 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
[package]
name = "example-testing-websockets"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]
axum = { path = "../../axum", features = ["ws"] }
futures = "0.3"
hyper = { version = "0.14", features = ["full"] }
tokio = { version = "1.0", features = ["full"] }
tokio-tungstenite = "0.17"