5 unstable releases

Uses old Rust 2015

0.11.1 Oct 28, 2021
0.11.0 Jul 14, 2021
0.10.1 Jul 8, 2021
0.10.0 Sep 17, 2020
0.8.0 Jan 28, 2019

#37 in WebSocket

Download history 3929/week @ 2023-08-18 5271/week @ 2023-08-25 5700/week @ 2023-09-01 5160/week @ 2023-09-08 6099/week @ 2023-09-15 3213/week @ 2023-09-22 3916/week @ 2023-09-29 5189/week @ 2023-10-06 4799/week @ 2023-10-13 4970/week @ 2023-10-20 4860/week @ 2023-10-27 5136/week @ 2023-11-03 3886/week @ 2023-11-10 4198/week @ 2023-11-17 3830/week @ 2023-11-24 3019/week @ 2023-12-01

15,641 downloads per month
Used in 29 crates (4 directly)

MIT license

5.5K SLoC


Lightweight, event-driven WebSockets for Rust.

/// A WebSocket echo server
listen("", |out| {
    move |msg| {

This fork

Note this is (hopefuly) a temporary fork of the original crate until https://github.com/housleyjk/ws-rs/pull/328 gets merged.


Build Status MIT licensed Crate


API Documentation

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.

Getting Started

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.


~213K SLoC