Documentation
    Preparing search index...

    Interface MockSerialState

    In-memory state of the serial mock.

    const state: MockSerialState = service.mock.state();
    state.ports.length === 2;
    interface MockSerialState {
        nextSession: number;
        ports: MockSerialPort[];
        sessions: Map<string, MockSerialSession>;
    }
    Index

    Properties

    nextSession: number

    Next session counter.

    Ports the chooser can select.

    sessions: Map<string, MockSerialSession>

    Sessions by id, including closed ones.