In-memory state of the serial mock.
const state: MockSerialState = service.mock.state();state.ports.length === 2; Copy
const state: MockSerialState = service.mock.state();state.ports.length === 2;
Next session counter.
Ports the chooser can select.
Sessions by id, including closed ones.
In-memory state of the serial mock.
Example