mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
Prepare communication
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user