Skip to main content

Module runtime

Module runtime 

Source
Expand description

Wires process services and drains them during shutdown.

Request handlers receive RuntimeState without boot or teardown control.

ModulesΒ§

auth πŸ”’
diagnostics πŸ”’
Operator diagnostics assembled from endpoint-specific room captures and RTC observations.
http_server πŸ”’
This module is the synchronous sibling of websocket_server: it exposes the server’s endpoints, translates authenticated HTTP requests into application room intents, and then renders the resulting public HTTP contract.
media_transport πŸ”’
media transport construction and extension boundary
metrics πŸ”’
process-local metric catalog and typed recorders
options πŸ”’
packet_sinks πŸ”’
room packet-sink registry shared by transport workers
prometheus πŸ”’
Prometheus text rendering for runtime metrics.
request_origin πŸ”’
room πŸ”’
room manager, room runtime and user-session integration types
websocket_server πŸ”’

StructsΒ§

ConnectionId πŸ”’
unique identifier for a user’s transport connection within the server process
MediaTransport πŸ”’
Opaque runtime media transport handle.
MediaTransportConfig πŸ”’
operator-facing RTC transport policy used to build each RTC worker
MediaTransportDeps πŸ”’
Long-lived services injected into media transport construction.
RoomPacketSinkRegistry πŸ”’
Runtime
Process services and lifecycle configuration.
RuntimeMetrics πŸ”’
RuntimeServices πŸ”’
RuntimeState πŸ”’
Cloneable request dependencies without process lifecycle control.
RuntimeTasks πŸ”’
Cancels process work when the server future is dropped.
SessionBitrateLimits πŸ”’
Per-session bandwidth policy applied by RTC workers.

EnumsΒ§

ServeError
Failure to serve or fully drain a Runtime.

FunctionsΒ§

build_media_transport πŸ”’
build_room_manager πŸ”’
build_room_runtime_policy πŸ”’
run
Errors
shutdown_signal πŸ”’
spawn_room_reservation_expiration_reaper πŸ”’
spawn_source_packet_policy_update_task πŸ”’
Recomputes room packet policy after transport observations change.