Module kvarn::websocket

source ·
Available on crate feature websocket only.
Expand description

Easy and fast WebSockets for Kvarn.

See response() for an example.

Re-exports

pub use tokio_tungstenite;
pub use tokio_tungstenite::tungstenite;

Traits

A Sink is a value into which other values can be sent, asynchronously.
An extension trait for Sinks that provides a variety of convenient combinator functions.
A stream of values produced asynchronously.
An extension trait for Streams that provides a variety of convenient combinator functions.

Functions

Form a response to a request on a WebSocket route.
Get a [tokio_tungstenite::WebSocketStream] from the pipe given by response_pipe_fut!.