Crate monoio_tungstenite

Crate monoio_tungstenite 

Source
Expand description

Lightweight, asynchronous WebSocket implementation for monoio runtime, adapted from tungstenite-rs.

Re-exports§

pub use client::connect_tls_with_config;
pub use error::Error;
pub use error::Result;
pub use protocol::Message;
pub use protocol::WebSocket;
pub use protocol::frame::Utf8Bytes;
pub use stream::MaybeTlsStream;
pub use tls::Connector;
pub use tls::client_tls;
pub use tls::client_tls_with_config;
pub use client::ClientRequestBuilder;
pub use client::client;
pub use client::client_with_config;
pub use client::connect;
pub use client::connect_with_config;
pub use handshake::client::client_handshake;
pub use handshake::server::server_handshake;
pub use server::accept;
pub use server::accept_hdr;
pub use server::accept_hdr_with_config;
pub use server::accept_with_config;
pub use http;

Modules§

client
Methods to connect to a WebSocket as a client.
error
Error handling.
handshake
WebSocket handshake control.
protocol
WebSocket protocol implementation.
server
Methods to accept an incoming WebSocket connection on a server.
stream
Convenience wrapper for streams to switch between plain TCP and TLS at runtime. There is no dependency on actual TLS implementations. Everything like native_tls or openssl will work as long as there is a TLS stream supporting AsyncReadRent + AsyncWriteRent traits.
tls
TLS support for WebSocket connections.

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.