[][src]Crate ws_stream

Provide AsyncRead/AsyncWrite over WebSockets (both tokio and 0.3)

Structs

Accept

Future representing a finished WS handshake.Accept

Connections

A stream of connections.

WsErr

The error type for errors happening in async_runtime.

WsStream

A tokio AsyncRead01/AsyncWrite01 representing a WebSocket connection. It only supports binary mode. Contrary to the rest of this library, this will work on types from futures 0.1 instead of 0.3. This is because tokio currently is on futures 0.1, so the stream returned from a codec will be 0.1.

Enums

WsErrKind

The different kind of errors that can happen when you use the async_runtime API.