docs: Complete WASM documentation update - reflect full networking capabilities

This commit is contained in:
2025-09-09 02:42:12 -07:00
parent 22c1f80e70
commit 49164da105
12 changed files with 790 additions and 117 deletions
+14 -10
View File
@@ -10,23 +10,27 @@ edition = "2021"
crate-type = ["cdylib"]
[dependencies]
# Only include the types and configuration, not the networking
# Use WASM features for WebSocket connectivity (published version)
socktop_connector = { version = "0.1.5", default-features = false, features = ["wasm"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
console_error_panic_hook = "0.1"
js-sys = "0.3"
# For manual protobuf handling if needed
prost = "0.13"
[dependencies.web-sys]
version = "0.3"
features = [
"console",
"WebSocket",
"MessageEvent",
"ErrorEvent",
"CloseEvent",
"BinaryType",
]
# Enable JS feature for WASM random number generation
[dependencies.getrandom]
version = "0.2"
features = ["js"]
# WASM-specific dependencies
[dependencies.web-sys]
version = "0.3"
features = [
"console",
]