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.
Features:
Endpoint.__sockets__/0introspection (websocketand optionalwebtransportoptions, skippingPhoenix.LiveReloader.Socketby default)- Multi-socket mounting on one listener (e.g.
"/live"and"/socket") - Exact, parameter (
"/tenant/:org/live"), and glob ("/room/*rest") path matching matchingPlug.Routersemantics while accepting both the mount path (/live) and the transport suffix (/live/webtransport) - Dev
Phoenix.CodeReloader.reload/1execution parity on upgrade
Summary
Functions
Compiles a list of routes from listener or engine options.
Matches an incoming request path against compiled routes, returning
{:ok, route, path_params} or :error.
Triggers code reloading when :code_reloader is enabled in route options or
on endpoint.config(:code_reloader).
Types
Functions
Compiles a list of routes from listener or engine options.
Matches an incoming request path against compiled routes, returning
{:ok, route, path_params} or :error.
Triggers code reloading when :code_reloader is enabled in route options or
on endpoint.config(:code_reloader).