test: add for WS

This commit is contained in:
oxalica 2024-09-22 04:42:52 -04:00
parent 4bca196df3
commit 883fac02ae
3 changed files with 142 additions and 6 deletions

35
Cargo.lock generated
View file

@ -167,7 +167,7 @@ dependencies = [
"sha1",
"sync_wrapper 1.0.1",
"tokio",
"tokio-tungstenite",
"tokio-tungstenite 0.21.0",
"tower",
"tower-layer",
"tower-service",
@ -337,6 +337,7 @@ dependencies = [
"tempfile",
"tokio",
"tokio-stream",
"tokio-tungstenite 0.24.0",
"toml",
"tower-http",
"tracing",
@ -2438,7 +2439,19 @@ dependencies = [
"futures-util",
"log",
"tokio",
"tungstenite",
"tungstenite 0.21.0",
]
[[package]]
name = "tokio-tungstenite"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edc5f74e248dc973e0dbb7b74c7e0d6fcc301c694ff50049504004ef4d0cdcd9"
dependencies = [
"futures-util",
"log",
"tokio",
"tungstenite 0.24.0",
]
[[package]]
@ -2615,6 +2628,24 @@ dependencies = [
"utf-8",
]
[[package]]
name = "tungstenite"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18e5b8366ee7a95b16d32197d0b2604b43a0be89dc5fac9f8e96ccafbaedda8a"
dependencies = [
"byteorder",
"bytes",
"data-encoding",
"http",
"httparse",
"log",
"rand",
"sha1",
"thiserror",
"utf-8",
]
[[package]]
name = "typenum"
version = "1.17.0"