Registry / networking / ws-stream-wasm

ws-stream-wasm

JSON →
library0.7.5rscratesunverified

A convenience library for using websockets in WASM.

# Cargo.toml [dependencies] ws_stream_wasm = "0.7.5"
INSTALL
IMPORT
SIG · WS-STREAM-WASM
W
ws-stream-wasm
networkingrustv0.7.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WsStream
✓ use ws_stream_wasm::WsStream;

Connects to a WebSocket endpoint in WASM.

use ws_stream_wasm::WsStream; fn main() { let stream = WsStream::connect("wss://example.com/ws"); println!("Connected"); }
Debug
Known issues
gotchaRequires WASM target and browser environment
fix
Compile with --target wasm32-unknown-unknown and run in a browser
affects: >=0.7.0
Upgrade
Version history
0.7.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
34
Bingbot
1
Resources
ws-stream-wasm — cargo add ws-stream-wasm · libregistry