Production supervision tree for a WebTransport listener and its sessions.
Starts four children under :one_for_one in exact startup order (so OTP
terminates them in reverse order during graceful shutdown):
Registry(:duplicate) tracking live WebTransport session pidsDynamicSupervisorsupervising individual session processes (:temporary)- Backend listener (
PhoenixWebTransport.Quic.Listener) PhoenixWebTransport.Drainersignalling live sessions on shutdown before the UDP listener closes
Example
# In application.ex after MyAppWeb.Endpoint
{PhoenixWebTransport.Supervisor,
endpoint: MyAppWeb.Endpoint,
port: 4433}
Summary
Functions
Returns a specification to start this module under a supervisor.
Returns the UDP port bound by the supervised listener.
Returns all currently registered live session pids under supervisor.
Starts the WebTransport supervision tree unless enabled: false.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec port(Supervisor.supervisor()) :: :inet.port_number()
Returns the UDP port bound by the supervised listener.
@spec sessions(Supervisor.supervisor()) :: [pid()]
Returns all currently registered live session pids under supervisor.
@spec start_link(keyword()) :: Supervisor.on_start()
Starts the WebTransport supervision tree unless enabled: false.