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.

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.

§Feature flags

  • client — Enables the client module.

  • server — Enables the server module.

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

  • document-features — Enable this when generating docs.

Modules§

clientclient
See WebSocketClient.
session
Implementation for WebSocket sessions.

Structs§

JsError
Error obtained from a JavaScript execution context.
WebSocketRuntime
Provides a platform-agnostic way to spawn futures for driving the WebSocket IO layer.