Behaviour for handling incoming JSON-RPC requests and notifications.
Implementations route decoded requests to the appropriate Agent or Client callbacks.
Summary
Callbacks
@callback handle_notification(notification :: any()) :: :ok | {:error, ACP.Error.t()}
Handle an incoming notification.
@callback handle_request(request :: any()) :: {:ok, any()} | {:error, ACP.Error.t()}
Handle an incoming request and return a response.