Skip to content

Session.on('serial-port-added') method

Session › on(‘serial-port-added’)

Unofficial

Emitted after a new serial port becomes available.

Signature:

on($event: "serial-port-added", listener: ($event: ElectronEvent, port: ElectronSerialPort, webContents: ElectronWebContents) => void): this

Parameters:

ParameterTypeDescription
$event"serial-port-added"
listener($event: ElectronEvent, port: ElectronSerialPort, webContents: ElectronWebContents) => void

Returns: this