class Obsctl::Server::Server

Overview

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

Defined in:

obsctl/server/server.cr

Constructors

Instance Method Summary

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.


[View source]

Instance Method Detail

def run : Int32 #

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


[View source]
def socket_path : String #

[View source]
def stop : Nil #

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


[View source]