Skip to content

frontend / worker/WorkerCommand / WorkerCommand

Enumeration: WorkerCommand ​

Defined in: worker/WorkerCommand.ts:12

Commands sent from main thread to the worker.

Every command is sent inside a message with three fields: id, type, payload. The id is a unique number; if the command expects a reply, worker sends it back with the same id. Commands which do not expect any reply still carry an id, but it is just ignored.

Values here are strings, not numbers, because they are visible in DevTools when debugging postMessage traffic. Numbers would make the log unreadable.

Enumeration Members ​

DebugUserCommandContinue ​

DebugUserCommandContinue: "debugUserCommandContinue"

Defined in: worker/WorkerCommand.ts:18


DebugUserCommandStep ​

DebugUserCommandStep: "debugUserCommandStep"

Defined in: worker/WorkerCommand.ts:19


DebugUserCommandStop ​

DebugUserCommandStop: "debugUserCommandStop"

Defined in: worker/WorkerCommand.ts:20


GetListOutputFiles ​

GetListOutputFiles: "getListOutputFiles"

Defined in: worker/WorkerCommand.ts:27


Init ​

Init: "init"

Defined in: worker/WorkerCommand.ts:13


LoadInputFile ​

LoadInputFile: "loadInputFile"

Defined in: worker/WorkerCommand.ts:23


ReadDebugFile ​

ReadDebugFile: "readDebugFile"

Defined in: worker/WorkerCommand.ts:21


ReadOutputFile ​

ReadOutputFile: "readOutputFile"

Defined in: worker/WorkerCommand.ts:28


RemoveInputFile ​

RemoveInputFile: "removeInputFile"

Defined in: worker/WorkerCommand.ts:24


SaveOutputFilesZip ​

SaveOutputFilesZip: "saveOutputFilesZip"

Defined in: worker/WorkerCommand.ts:26


StartDebugCode ​

StartDebugCode: "startDebugCode"

Defined in: worker/WorkerCommand.ts:17


StartRunCode ​

StartRunCode: "startRunCode"

Defined in: worker/WorkerCommand.ts:14


StopRunCode ​

StopRunCode: "stopRunCode"

Defined in: worker/WorkerCommand.ts:15