An implementation of the RFC6455 websocket protocol as a tokio-core Codec and a tokio-proto pipeline ServerProto
This can be used to serve up a tokio-service Service in a tokio-proto TcpServer (See twists for an example).
Note: Even though this is implemented as a pipeline protocol, fragmented websocket messages are supported, so streaming from a websocket client is supported.
Include the following in your Cargo.toml
dependencies section
twist = "0.1.3"
Support extensions and subprotocol negotiation.
See the twists project for an example implementation of an echo server using twist.