GraphReFlyTS

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

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
bridgeWireBridgeBundle<RemoteCallResponse<TResponse>, RemoteCallRequest<TRequest>>bridge value used by the helper.
optsRemoteResponderOptions<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