remoteResponder()
D147 remote responder over inbound wireBridge request facts and outbound command facts.
Import
Section titled “Import”import { remoteResponder } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function remoteResponder( graph: Graph, bridge: WireBridgeBundle<RemoteCallResponse<TResponse>, RemoteCallRequest<TRequest>>, opts: RemoteResponderOptions<TRequest, TResponse> = {},): RemoteResponderBundle<TRequest, TResponse>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
bridge | WireBridgeBundle<RemoteCallResponse<TResponse>, RemoteCallRequest<TRequest>> | bridge value used by the helper. |
opts | RemoteResponderOptions<TRequest, TResponse> | Options that configure the helper. |
Returns
Section titled “Returns”A RemoteResponderBundle<TRequest, TResponse> value.
Example
Section titled “Example”import { remoteResponder } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/bridge.ts