Documentation
    Preparing search index...

    Interface MockSerialSession

    One serial session the mock holds for a window.

    const session = service.mock.state().sessions.get('serial-1');
    session?.writes.length;
    interface MockSerialSession {
        id: string;
        label?: string;
        options: SerialOpenOptions;
        port: MockSerialPort;
        state: SerialState;
        windowId: string;
        writes: number[][];
    }
    Index

    Properties

    id: string

    Runtime-assigned session id (serial-N).

    label?: string

    Optional chooser label from the request.

    options: SerialOpenOptions

    Options the napplet opened with.

    Port the chooser selected.

    state: SerialState

    Lifecycle state.

    windowId: string

    Owning napplet window.

    writes: number[][]

    Every accepted write, oldest first.