API Reference
remoteCall()
D147 remote dispatcher call helper over explicit wireBridge request/response facts.
Import
import { remoteCall } from "@graphrefly/ts/adapters";
Signature
function remoteCall(
graph: Graph,
bridge: WireBridgeBundle<RemoteCallRequest<TRequest>, RemoteCallResponse<TResponse>>,
opts: RemoteCallOptions = {},
): RemoteCallBundle<TRequest, TResponse>
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
bridge | WireBridgeBundle<RemoteCallRequest<TRequest>, RemoteCallResponse<TResponse>> | bridge value used by the helper. |
opts | RemoteCallOptions | Options that configure the helper. |
Returns
A RemoteCallBundle<TRequest, TResponse> value.
Example
import { remoteCall } from "@graphrefly/ts/adapters";
Source
packages/ts/src/adapters/bridge-remote-call.ts