ElectronDebugger.once method
ElectronDebugger › once
Unofficial
Registers a one-time listener for thedetach event.Signature:
once($event: "detach", listener: ($event: ElectronEvent, reason: string) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "detach" | |
| listener | ($event: ElectronEvent, reason: string) => void | Called with the event and the reason for detaching. |
Returns: this — This debugger instance.
Unofficial
Registers a one-time listener for themessage event.Signature:
once($event: "message", listener: ($event: ElectronEvent, method: string, params: unknown, sessionId: string) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "message" | |
| 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.