Contract for WebTransport server listener backends.
Defaults to PhoenixWebTransport.Quic.Listener (erlang_quic).
Summary
Callbacks
Returns whether this backend's runtime dependencies are available.
Describes backend transport capabilities.
Starts the backend listener process.
Functions
Resolves the listener module for :quic or :auto.
Types
Callbacks
@callback available?() :: boolean()
Returns whether this backend's runtime dependencies are available.
@callback capabilities() :: %{ native_build: boolean(), datagrams: boolean(), stream_priority: atom() }
Describes backend transport capabilities.
@callback start_link(keyword()) :: GenServer.on_start()
Starts the backend listener process.
Functions
@spec resolve(backend_name()) :: {:ok, module()} | {:error, term()}
Resolves the listener module for :quic or :auto.