Skip to main content

Module events

Module events 

Source
Expand description

Task event bus — broadcast channel for status transitions.

Structs§

ControlMessage
A control message sent by the server to the websocket client for out-of-band notifications such as lag warnings.
EventBus
The event bus — wraps a tokio broadcast channel.
EventFilter
Parsed query-parameter filters for a websocket connection.
TaskEvent
A task status transition event.

Functions§

cleanup_port_file
Remove the ws.port file on shutdown.
cleanup_version_file
Remove the service.version file on shutdown — only if this process owns it.
select_available_listener
Find an available port in the ephemeral range (49152-65535). Starts from a deterministic offset based on hostname hash, then increments. This gives stable first-attempt ports across restarts on the same machine.