kkrpc
    Preparing search index...

    Interface IoInterface

    The generic IO contract used throughout the library. Implementations can choose to support string-only messaging or structured clone objects.

    interface IoInterface {
        capabilities?: IoCapabilities;
        name: string;
        destroy(): void;
        read(): Promise<null | string | IoMessage>;
        signalDestroy(): void;
        write(message: string | IoMessage): Promise<void>;
    }

    Implemented by

    Index

    Properties

    capabilities?: IoCapabilities
    name: string

    Methods

    • Clean up resources used by the IO adapter

      Returns void

    • Signal that the IO adapter should prepare for destruction

      Returns void