Crates.io | tetsy-ws |
lib.rs | tetsy-ws |
version | 0.10.0 |
source | src |
created_at | 2021-03-13 02:29:34.137145 |
updated_at | 2021-03-13 02:53:12.631861 |
description | Tetsy Lightweight, event-driven WebSockets for Rust. |
homepage | https://core.tetcoin.org |
repository | https://github.com/tetcoin/tetsy-ws |
max_upload_size | |
id | 368094 |
size | 316,629 |
Lightweight, event-driven WebSockets for Rust.
/// A WebSocket echo server
listen("127.0.0.1:3012", |out| {
move |msg| {
out.send(msg)
}
})
Note this is (hopefuly) a temporary fork of the original crate until https://github.com/housleyjk/ws-rs/pull/328 gets merged.
This library provides an implementation of WebSockets, RFC6455 using MIO. It allows for handling multiple connections on a single thread, and even spawning new client connections on the same thread. This makes for very fast and resource efficient WebSockets. The API design abstracts away the menial parts of the WebSocket protocol and allows you to focus on application code without worrying about protocol conformance. However, it is also possible to get low-level access to individual WebSocket frames if you need to write extensions or want to optimize around the WebSocket protocol.
For detailed installation and usage instructions, check out the guide.
WS-RS provides a complete implementation of the WebSocket specification. There is also support for ssl and permessage-deflate.
WS-RS is thoroughly tested and passes the Autobahn Test Suite for
WebSockets, including the tests for permessage-deflate
. Visit
ws-rs.org to view the results of the latest test run.
Please report bugs and make feature requests here.