remoteCall()
D147 remote dispatcher call helper over explicit wireBridge request/response facts.
Import
Section titled “Import”import { remoteCall } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function remoteCall( graph: Graph, bridge: WireBridgeBundle<RemoteCallRequest<TRequest>, RemoteCallResponse<TResponse>>, opts: RemoteCallOptions = {},): RemoteCallBundle<TRequest, TResponse>Parameters
Section titled “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
Section titled “Returns”A RemoteCallBundle<TRequest, TResponse> value.
Example
Section titled “Example”import { remoteCall } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/bridge-remote-call.ts