paritytech/ws-rs

Name: ws-rs

Owner: Parity Technologies

Description: Lightweight, event-driven WebSockets for Rust.

Forked from: housleyjk/ws-rs

Created: 2016-05-31 09:30:53.0

Updated: 2016-05-31 09:30:54.0

Pushed: 2017-03-29 09:31:19.0

Homepage: null

Size: 1010

Language: Rust

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

WS-RS

Lightweight, event-driven WebSockets for Rust.

A WebSocket echo server
en("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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.