gecko-dev/third_party/rust/ws
Simon Sapin ba9227ad31 Bug 1568540 - ./mach vendor rust r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42365

--HG--
rename : third_party/rust/input_buffer/LICENSE-APACHE => third_party/rust/percent-encoding/LICENSE-APACHE
extra : moz-landing-system : lando
2019-08-17 16:29:07 +00:00
..
examples Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj 2019-05-18 13:39:31 +00:00
src Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj 2019-05-18 13:39:31 +00:00
tests Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj 2019-05-18 13:39:31 +00:00
.cargo-checksum.json Bug 1568540 - ./mach vendor rust r=emilio 2019-08-17 16:29:07 +00:00
CHANGELOG.md Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj 2019-05-18 13:39:31 +00:00
Cargo.toml Bug 1568540 - ./mach vendor rust r=emilio 2019-08-17 16:29:07 +00:00
LICENSE Bug 1542826 - Re-vendor rust dependencies. r=froydnj 2019-04-25 19:28:59 +00:00
README.md Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj 2019-05-18 13:39:31 +00:00

README.md

WS-RS

Lightweight, event-driven WebSockets for Rust.


/// A WebSocket echo server
listen("127.0.0.1:3012", |out| {
    move |msg| {
        out.send(msg)
    }
})

Introduction

Build Status MIT licensed Crate

Homepage

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.

Features

WS-RS provides a complete implementation of the WebSocket specification. There is also support for ssl and permessage-deflate.

Testing

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.

Contributing

Please report bugs and make feature requests here.