rulvar API reference / @rulvar/core / SandboxBridge
Interface: SandboxBridge
Defined in: packages/core/src/runner/sandbox-bridge.ts:77
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
runId | readonly | string | The run id; the worker seeds its deterministic shims from it. | packages/core/src/runner/sandbox-bridge.ts:79 |
Methods
close()
ts
close(): void;Defined in: packages/core/src/runner/sandbox-bridge.ts:83
Releases the activity token and rejects outstanding thunks.
Returns
void
onMessage()
ts
onMessage(message): void;Defined in: packages/core/src/runner/sandbox-bridge.ts:81
Feeds one worker message into the bridge.
Parameters
| Parameter | Type |
|---|---|
message | SandboxWorkerToHost |
Returns
void