API Reference
remoteResponder()
D147 remote responder over inbound wireBridge request facts and outbound command facts.
Import
import { remoteResponder } from "@graphrefly/ts/adapters";
Signature
function remoteResponder(
graph: Graph,
bridge: WireBridgeBundle<RemoteCallResponse<TResponse>, RemoteCallRequest<TRequest>>,
opts: RemoteResponderOptions<TRequest, TResponse> = {},
): RemoteResponderBundle<TRequest, TResponse>
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
A RemoteResponderBundle<TRequest, TResponse> value.
Example
import { remoteResponder } from "@graphrefly/ts/adapters";
Source
packages/ts/src/adapters/bridge.ts