connected

The connected read-only property of the SerialPort interface returns a boolean value that indicates whether the port is logically connected to the device.

MDN Reference