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:

Parameter Type Description
event "preconnect"
listener (event: ElectronEvent, preconnectUrl: string, allowCredentials: boolean) => void

Returns: this