| Crates.io | rocket_ws-community |
| lib.rs | rocket_ws-community |
| version | 0.1.4 |
| created_at | 2025-12-17 05:24:03.787766+00 |
| updated_at | 2026-01-20 18:46:32.493932+00 |
| description | WebSocket support for Rocket. (Community Fork) |
| homepage | https://rocket.rs |
| repository | https://github.com/rwf2/Rocket/tree/master/contrib/ws |
| max_upload_size | |
| id | 1989314 |
| size | 81,684 |
ws This crate provides WebSocket support for Rocket via integration with Rocket's [connection upgrades] API.
Depend on rocket_ws, renamed here to ws:
[dependencies]
ws = { package = "rocket_ws-community", version = "0.1.4" }
Use it!
#[get("/echo")]
fn echo_stream(ws: ws::WebSocket) -> ws::Stream!['static] {
ws::Stream! { ws =>
for await message in ws {
yield message?;
}
}
}
See the crate docs for full details.