Skip to content

@oona/vlo / host / createClient

Function: createClient() ​

createClient(options?): Client

Defined in: sdk/ts/sdk/src/client/index.ts:158

Builds a Client. With no options it talks to http://vlo.localhost over globalThis.fetch, which is only useful together with fetch: host.fetch.

Parameters ​

options? ​

ClientOptions = {}

Returns ​

Client

Example ​

ts
import { createClient } from "@oona/vlo/host";

const client = createClient({ baseUrl: "http://127.0.0.1:4100", token: "control-plane-token" });
const run = await client.start(pipeline, { clip: "reel" });
await client.signal(run.run_id, "approve", { by: "me" });
const done = await client.waitFor(run.run_id, "completed");
console.log(done.output);