Skip to content

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): this

Parameters:

ParameterTypeDescription
$event"preconnect"
listener($event: ElectronEvent, preconnectUrl: string, allowCredentials: boolean) => void

Returns: this