ElectronDebugger.on('message') method
ElectronDebugger › on(‘message’)
Unofficial
Registers a listener for themessage event, emitted when the debugging target issues an instrumentation event. Signature:
on(event: "message", listener: (event: ElectronEvent, method: string, params: unknown, sessionId: string) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "message" | The event name. |
| listener | (event: ElectronEvent, method: string, params: unknown, sessionId: string) => void | Called with the event, method name, event parameters, and session id. |
Returns: this — This debugger instance.