Skip to content

ElectronDebugger.on('message') method

ElectronDebugger › on(‘message’)

Unofficial

Registers a listener for the message event, emitted when the debugging target issues an instrumentation event.

Signature:

on(event: "message", listener: (event: ElectronEvent, method: string, params: unknown, sessionId: string) => void): this

Parameters:

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: thisThis debugger instance.