class

Obsctl::IPC::UnixClient

Inherits Reference < Object

Local Unix socket IPC client for thin CLI commands.

Constructors

new(socket_path : String = SocketPath.resolve, codec : Codec = Codec.new, timeout : Time::Span | Nil = nil)

Creates a client targeting the resolved obsctl server socket.

timeout bounds a single request/response exchange; nil waits as long as the daemon needs, which is what long-lived subscriptions require.

Source

Instance methods

connect

Opens a persistent client session to the local server.

Source
request(request : Request) : Response

Sends one request and waits for its correlated response.

Source