Add basic ping-pong websocket

This commit is contained in:
2025-02-06 21:40:11 +01:00
parent c573d2f74a
commit 4ff72e073e
6 changed files with 151 additions and 4 deletions

29
Cargo.lock generated
View File

@ -214,6 +214,20 @@ dependencies = [
"syn",
]
[[package]]
name = "actix-ws"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3a1fb4f9f2794b0aadaf2ba5f14a6f034c7e86957b458c506a8cb75953f2d99"
dependencies = [
"actix-codec",
"actix-http",
"actix-web",
"bytestring",
"futures-core",
"tokio",
]
[[package]]
name = "addr2line"
version = "0.24.2"
@ -2035,6 +2049,7 @@ dependencies = [
"actix-remote-ip",
"actix-session",
"actix-web",
"actix-ws",
"anyhow",
"askama",
"base16ct",
@ -2057,6 +2072,8 @@ dependencies = [
"serde_json",
"sha2 0.11.0-pre.4",
"thiserror 2.0.11",
"time",
"tokio",
"urlencoding",
"uuid",
]
@ -3490,9 +3507,21 @@ dependencies = [
"pin-project-lite",
"signal-hook-registry",
"socket2",
"tokio-macros",
"windows-sys 0.52.0",
]
[[package]]
name = "tokio-macros"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "tokio-native-tls"
version = "0.3.1"