websock-tungstenite-mux

Crates.iowebsock-tungstenite-mux
lib.rswebsock-tungstenite-mux
version0.2.0
created_at2026-01-18 02:18:20.097107+00
updated_at2026-01-18 02:18:20.097107+00
descriptionNative WebSocket multiplexing layer for logical streams
homepage
repositoryhttps://github.com/foctal/websock
max_upload_size
id2051602
size84,430
shellrow (shellrow)

documentation

README

websock Crates.io License

A minimal WebSocket library for native and WebAssembly.

Workspace crates

  • websock: top-level facade that selects native (websock-tungstenite) or WASM (websock-wasm).
  • websock-proto: shared protocol types and frame handling.
  • websock-tungstenite: native transport powered by tokio + tungstenite (optional TLS via rustls).
  • websock-wasm: browser transport using the WebSocket API.
  • websock-wasm-demo: small browser demo.

Quick start

[dependencies]
websock = "0.1"

If you want to depend on a specific transport directly, use the crates above instead of websock.

Native

See examples.

WebAssembly

The websock-wasm-demo crate contains a small browser demo that connects to an echo server.

Commit count: 27

cargo fmt