class

GemframeSample::JobProgressService

Inherits Reference < Object

Starts demo jobs and streams progress updates back to the frontend.

JavaScript example: import CrystalBridge from "../framework/generated/crystal_bridge"; import { createFrontendBridgeRuntimeFromWindow } from "../framework/bridge_runtime.js";

const runtime = createFrontendBridgeRuntimeFromWindow(); runtime.bus.on("job.progress", payload => console.log(payload.job_id, payload.percent)); const started = await CrystalBridge.jobs.start_demo("frontend-button"); console.log(started.job_id, started.status);

Constructors

new(bridge : Bridge)
Source

Instance methods

start_demo(source : String = "frontend") : JobStartResult
Source