mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-14 12:49:28 +00:00
Enhance MonitorManager APIs
This commit is contained in:
committed by
Alberto Iannaccone
parent
2c95e7f033
commit
480492a7c8
@@ -1,6 +1,13 @@
|
||||
import { Emitter } from "@theia/core";
|
||||
import { injectable } from "@theia/core/shared/inversify";
|
||||
import { MonitorManagerProxyClient } from "../common/monitor-manager-proxy";
|
||||
|
||||
@injectable()
|
||||
export class MonitorManagerProxyClientImpl implements MonitorManagerProxyClient {
|
||||
protected readonly onWebSocketChangedEmitter = new Emitter<number>();
|
||||
readonly onWebSocketChanged = this.onWebSocketChangedEmitter.event;
|
||||
|
||||
notifyWebSocketChanged(message: number): void {
|
||||
this.onWebSocketChangedEmitter.fire(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user