(streamId: string, callback: (event: VMEvent) => void)
| 382 | } |
| 383 | |
| 384 | public on(streamId: string, callback: (event: VMEvent) => void): Promise<DebuggerResult> { |
| 385 | this.eventListeners[streamId] = callback; |
| 386 | return this.streamListen(streamId); |
| 387 | } |
| 388 | |
| 389 | public streamListen(streamId: string): Promise<DebuggerResult> { |
| 390 | return this.callMethod("streamListen", { streamId }); |