Connects this client app directly to an agent app.
This is useful for tests and in-process examples that do not need a transport.
Connects this client app to a transport stream for the lifetime of op.
The callback receives a ClientContext for calling agent-side methods.
When op resolves or rejects, the connection is closed.
Connects this client app directly to an agent app for the lifetime of op.
Registers a client request handler by ACP method name.
Built-in method literals infer their params and response types from
method. Pass a parser as the second argument to register custom extension
methods.
Registers a client request handler by ACP method name.
Built-in method literals infer their params and response types from
method. Pass a parser as the second argument to register custom extension
methods.
Registers a client notification handler by ACP method name.
Built-in method literals infer their params type from method. Pass a
parser as the second argument to register custom extension notifications.
Registers a client notification handler by ACP method name.
Built-in method literals infer their params type from method. Pass a
parser as the second argument to register custom extension notifications.
Client-side app builder.
Methods on this class register typed client handlers and return
this, so apps can be built with a fluent chain.connectWith(...)is the usual entry point for clients because it provides aClientContextfor calling agent-side requests and session helpers.