Skip to content

Documentation / @hybrid-compute/remote / createRemoteCompute

Function: createRemoteCompute() ​

ts
function createRemoteCompute(
  options: RemoteComputeOptionsInterface
): RemoteCompute;

Defined in: packages/remote/src/index.ts:563

Creates a RemoteCompute backend.

Parameters ​

options ​

RemoteComputeOptionsInterface

The transport, endpoint, allowed tasks and, optionally, a timeout and fetch headers.

Returns ​

RemoteCompute

A new RemoteCompute instance.

Throws ​

For a missing or wrongly typed option.

Throws ​

For an unknown transport, an endpoint with the wrong URL scheme, or a negative timeout.