Skip to content
PACKAGES

remoteCall()

D147 remote dispatcher call helper over explicit wireBridge request/response facts.

import { remoteCall } from "@graphrefly/ts/adapters";
function remoteCall(
graph: Graph,
bridge: WireBridgeBundle<RemoteCallRequest<TRequest>, RemoteCallResponse<TResponse>>,
opts: RemoteCallOptions = {},
): RemoteCallBundle<TRequest, TResponse>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
bridgeWireBridgeBundle<RemoteCallRequest<TRequest>, RemoteCallResponse<TResponse>>bridge value used by the helper.
optsRemoteCallOptionsOptions that configure the helper.

A RemoteCallBundle<TRequest, TResponse> value.

import { remoteCall } from "@graphrefly/ts/adapters";

packages/ts/src/adapters/bridge-remote-call.ts