class

Obsctl::Server::Server

Inherits Reference < Object

Foreground local daemon that owns the OBS WebSocket connection and IPC socket.

Constructors

new(config : Config::Config, config_path : String, options : ServerOptions = ServerOptions.new, socket_path : String = IPC::SocketPath.resolve, logger : Runtime::Logger | Nil = nil)

Builds a server runtime around a loaded config and resolved socket path.

Source

Instance methods

run

Starts the OBS supervisor and blocks in the Unix socket accept loop.

Source
socket_path
Source
stop

Stops OBS supervision, closes IPC listeners, and removes the socket.

Idempotent: a signal and the run ensure block both reach here, and the accept loop unwinds through ensure once the listener closes.

Source