Skip to content

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

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

Unofficial

Emitted after a serial port has been removed.

Signature:

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

Parameters:

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

Returns: this