GenServer managing a bidirectional JSON-RPC 2.0 connection over IO streams.
Handles line-delimited JSON over stdin/stdout (or any IO streams). Manages request/response correlation and message routing via a Side module.
Summary
Functions
Returns a specification to start this module under a supervisor.
Send a notification (no response expected).
Send a request and wait for a response.
Send a response to a received request.
Start a connection GenServer.
Stop the connection.
Subscribe to stream messages. Returns a reference.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Send a notification (no response expected).
Send a request and wait for a response.
Send a response to a received request.
Start a connection GenServer.
Options:
:side- The side module (ACP.ClientSide or ACP.AgentSide):handler- Module implementing ACP.MessageHandler:handler_state- State passed to handler callbacks:input- Input IO device or port (default: :stdio):output- Output IO device (default: :stdio):name- Optional GenServer name
Stop the connection.
Subscribe to stream messages. Returns a reference.