Documentation / @agentick/shared / RPCTransportDelegate
Interface: RPCTransportDelegate
Defined in: rpc-transport.ts:48
Wire-specific delegate. Implementations exist for WebSocket, Unix socket, etc. The delegate is responsible ONLY for opening the raw connection, sending bytes, and forwarding received messages/close/error events to the callbacks.
Methods
open()
open(
callbacks):Promise<RPCConnectionHandle>
Defined in: rpc-transport.ts:56
Open a connection to the server. Must call callbacks.onMessage for each received message (already parsed JSON). Must call callbacks.onClose when connection drops. Must call callbacks.onError on connection errors. Returns a handle for sending data and closing.
Parameters
callbacks
Returns
Promise<RPCConnectionHandle>