Connection API¶
connection
¶
Core WebTransport connection object representing a QUIC connection.
ConnectionDiagnostics
dataclass
¶
Encapsulate connection diagnostic data.
WebTransportConnection
¶
Manage the high-level WebTransport connection over the shared multiplexing driver.
config
property
¶
Return the configuration associated with this connection.
local_addresses
property
¶
Return the local addresses of the connection.
remote_address
property
¶
Return the remote address of the connection.
accept
classmethod
¶
accept(*, controller: EndpointController, handle: int, config: ServerConfig) -> WebTransportConnection
Instantiate a connection wrapper for an accepted server connection.
close
async
¶
Terminate the WebTransport connection.
create_session
async
¶
create_session(*, authority: str, path: str, headers: Headers | None = None, wt_available_protocols: list[str] | None = None) -> WebTransportSession
Initiate a new WebTransport session.
diagnostics
async
¶
Retrieve diagnostic information about the connection.
execute_request
async
¶
Execute an asynchronous IPC request via the controller.
get_all_sessions
¶
Retrieve a list of all active session handles.
graceful_shutdown
async
¶
Initiate a graceful shutdown of the connection.