finga
afa1d19dd8
Use websockets to send binary messages to the server. The server logs the time taken by the client, as well as the time calculated with the received messages sent by the client.
26 lines
717 B
TOML
26 lines
717 B
TOML
[package]
|
|
name = "client"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "A WASM client for lockwatch."
|
|
license = "GPL-3.0-or-later"
|
|
readme = "../README.md"
|
|
repository = "https://git.onders.org/finga/lockwatch"
|
|
keywords = ["stop-watch", "time-taking", "lock-picking"]
|
|
categories = ["wasm", "web-programming::http-client"]
|
|
|
|
[dependencies]
|
|
yew = "0.19"
|
|
console_error_panic_hook = "0.1"
|
|
log = "0.4"
|
|
wasm-logger = "0.2"
|
|
futures = "0.3"
|
|
gloo-timers = "0.2"
|
|
gloo-net = "0.2"
|
|
instant = { version = "0.1", features = [ "wasm-bindgen" ] }
|
|
wasm-bindgen-futures = "0.4"
|
|
bincode = "1"
|
|
yew-router = "0.16"
|
|
serde = { version = "1", features = ["derive"] }
|
|
tokio = { version = "1", default-features = false, features = ["sync"] }
|