class
Obsctl::IPC::UnixClient
- Obsctl::IPC::UnixClient
- Reference
- Object
Overview
Local Unix socket IPC client for thin CLI and TUI commands.
Defined in:
obsctl/ipc/unix_client.crConstructors
-
.new(socket_path : String = SocketPath.resolve, codec : Codec = Codec.new)
Creates a client targeting the resolved obsctl server socket.
Instance Method Summary
-
#connect : ClientSession
Opens a persistent client session to the local server.
-
#request(request : Request) : Response
Sends one request and waits for its correlated response.
Constructor Detail
Creates a client targeting the resolved obsctl server socket.
Instance Method Detail
Sends one request and waits for its correlated response.