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;
        off(event: "message" | "error", listener: Function): void;
        on(event: "message", listener: (message: string | IoMessage) => void): void;
        on(event: "error", listener: (error: Error) => void): void;
        read(): Promise<null | string | IoMessage>;
        signalDestroy(): void;
        write(message: string | IoMessage): Promise<void>;
    }

    Implemented by

    Index

    Properties

    capabilities?: IoCapabilities
    name: string

    Methods