API Reference phoenix_wtransport v#0.1.0

Copy Markdown View Source

Modules

WebTransport (HTTP/3 over QUIC) as a transport for Phoenix sockets and LiveView, with one QUIC stream per LiveView component and shortest-message-first scheduling.

Contract for WebTransport server listener backends.

Development certificate for the WebTransport listener.

Extracts connect_info and auth_token credentials for Phoenix.Socket.Transport with full parity for non-cookie HTTP/3 WebTransport CONNECT upgrades.

Graceful shutdown drainer started after the listener inside PhoenixWebTransport.Supervisor.

Wire framing shared by the server session layer and the browser transport.

Per-session outbound lane scheduler providing

A Phoenix.Socket.Serializer that splits one LiveView diff push into several independently deliverable frames, one per updated component.

Lane bookkeeping shared between LaneSerializer, SessionEngine, and Quic.Session.

Process-wide cap on outbound parked bytes shared by every WebTransport session.

Origin validation for WebTransport CONNECT upgrades, matching Phoenix.Socket.Transport.check_origin/5 semantics.

Optional Phoenix Endpoint / Router Plug for HTTP/3 discovery and cookie-less WebTransport session token minting.

WebTransport listener on erlang_quic (benoitc/erlang_quic), a pure Erlang QUIC + HTTP/3 stack with zero native build dependencies.

Introspects Endpoint.__sockets__/0 (plus explicit :sockets / :socket configuration) and routes incoming WebTransport CONNECT requests across one or more Phoenix sockets sharing a single UDP listener.

Backend-agnostic WebTransport session state machine driving a Phoenix.Socket.Transport.

Production supervision tree for a WebTransport listener and its sessions.

Signs and verifies short-lived Phoenix.Token credentials for bridging HTTP session state into cookie-less WebTransport connections.