Skip to main content

Crate aeronet_websocket

Crate aeronet_websocket 

Source
Expand description

aeronet_io implementation using WebSockets for reliable-ordered data transfer over TCP between peers, compatible with both native and WASM.

crates.io docs.rs

This uses tokio-tungstenite on native targets, and web-sys on WASM targets, for WebSocket usage. The server implementation is only available on native targets.

AWS-LC is the default rustls crypto provider. Applications must install their selected provider before building a TLS configuration if default features are disabled or another provider is also enabled.

§Feature flags

  • aws-lc-rs (enabled by default) — Enables the aws-lc-rs rustls crypto provider.

    Applications must install their selected provider before building a TLS configuration if another provider is also enabled.

  • client — Enables the client module.

  • document-features — Enable this when generating docs.

  • self-signed (enabled by default) — Allows generating self-signed server certificates using rcgen.

  • server — Enables the server module.

Re-exports§

pub use rustls;
pub use tokio_tungstenite;
pub use tokio_tungstenite::tungstenite;
pub use rustls_native_certs;client

Modules§

clientclient
See WebSocketClient.
serverserver
See WebSocketServer.
session
Implementation for WebSocket sessions, shared between clients and servers.

Structs§

WebSocketRuntime
Provides a platform-agnostic way to spawn futures for driving an aeronet IO layer.