state

open external val state: MIDIPortDeviceState(source)

The state read-only property of the MIDIPort interface returns the state of the port.

MDN Reference