class
Obsctl::Server::Server
- Obsctl::Server::Server
- Reference
- Object
Overview
Foreground local daemon that owns the OBS WebSocket connection and IPC socket.
Defined in:
obsctl/server/server.crConstructors
-
.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.
Instance Method Summary
-
#run : Int32
Starts the OBS supervisor and blocks in the Unix socket accept loop.
- #socket_path : String
-
#stop : Nil
Stops OBS supervision, closes IPC listeners, and removes the socket.
Constructor Detail
def self.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.