Registry / networking / deno-websocket

deno-websocket

JSON →
library0.252.0rscratesunverified

Implementation of the WebSocket API for Deno, enabling real-time communication.

# Cargo.toml [dependencies] deno_websocket = "0.252.0"
INSTALL
IMPORT
SIG · DENO-WEBSOCKET
D
deno-websocket
networkingrustv0.252.0
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.

WebSocket
use deno_websocket::WebSocket;

Connect to a WebSocket server.

use deno_websocket::WebSocket; let ws = WebSocket::connect("ws://example.com").await.unwrap();
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) to be used.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=0.252.0
Upgrade
Version history
0.252.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
30
Amazon
1
OpenAI (training)
1
Resources
deno-websocket — cargo add deno-websocket · libregistry