Session.on('preconnect') method
Session › on(‘preconnect’)
Unofficial
Emitted when a render process requests preconnection to a URL.Signature:
on(event: "preconnect", listener: (event: ElectronEvent, preconnectUrl: string, allowCredentials: boolean) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "preconnect" | |
| listener | (event: ElectronEvent, preconnectUrl: string, allowCredentials: boolean) => void |
Returns: this