MCPcopy Create free account
hub / github.com/Sandpack/nodebox-runtime / WorkerEvents

Interface WorkerEvents

packages/nodebox/src/messages.ts:65–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 };
64
65export interface WorkerEvents {
66 'internal/handshake/done': void;
67 'internal/operation/done': {
68 operationId: string;
69 listenerPayload: unknown;
70 };
71 'internal/operation/failed': {
72 operationId: string;
73 error: Error;
74 };
75 'runtime/ready': void;
76 'worker/progress': {
77 workerId?: string;
78 status: WorkerStatusUpdate;
79 };
80 'worker/tty': {
81 workerId: string;
82 payload: {
83 data: string;
84 type: 'out' | 'err';
85 };
86 };
87 'worker/exit': {
88 workerId: string;
89 exitCode: number;
90 error?: {
91 message: string;
92 };
93 };
94 'preview/port/ready': PreviewInfo;
95 'fs/watch-event': FSWatchEvent;
96}
97
98type OperationEvent<Payload> = Payload & {
99 operationId: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected