Prepare communication

This commit is contained in:
momo5502
2025-04-28 13:37:16 +02:00
parent 9ab282c2cf
commit f411ad8d93
16 changed files with 774 additions and 228 deletions

View File

@@ -112,6 +112,24 @@ export class Emulator {
});
}
pause() {
this.sendEvent(
new fbDebugger.DebugEventT(
fbDebugger.Event.PauseRequest,
new fbDebugger.PauseRequestT(),
),
);
}
resume() {
this.sendEvent(
new fbDebugger.DebugEventT(
fbDebugger.Event.RunRequest,
new fbDebugger.RunRequestT(),
),
);
}
_onMessage(event: MessageEvent) {
if (event.data.message == "log") {
this.logHandler(event.data.data);