JSON-RPC helper on top of CliSubprocessCore.ProtocolSession.
The helper owns generic JSON-RPC framing, request id allocation, response decoding, and peer-request reply encoding. Provider-specific methods, params, and schemas stay outside the core.
Summary
Functions
Waits for the JSON-RPC session to become ready.
Stops the JSON-RPC session.
Returns JSON-RPC session information.
Interrupts the underlying session.
Sends a JSON-RPC notification.
Sends a JSON-RPC request.
Starts an unlinked JSON-RPC session.
Starts a linked JSON-RPC session.
Types
@type info_t() :: CliSubprocessCore.ProtocolSession.info_t()
@type t() :: CliSubprocessCore.ProtocolSession.t()
Functions
@spec await_ready(t(), pos_integer()) :: :ok | {:error, term()}
Waits for the JSON-RPC session to become ready.
@spec close(t()) :: :ok
Stops the JSON-RPC session.
Returns JSON-RPC session information.
Interrupts the underlying session.
Sends a JSON-RPC notification.
Sends a JSON-RPC request.
Starts an unlinked JSON-RPC session.
@spec start_link(keyword()) :: GenServer.on_start()
Starts a linked JSON-RPC session.