Interface IoInterface

Theoretically, any bidirectional channel with read and write can be used to build a RPC interface.

interface IoInterface {
    name: string;
    read(): Promise<
        | null
        | string
        | Buffer
        | Uint8Array>;
    write(data: string): Promise<void>;
}

Hierarchy (view full)

Implemented by

Properties

Methods

Properties

name: string

Methods

  • Returns Promise<
        | null
        | string
        | Buffer
        | Uint8Array>

  • Parameters

    • data: string

    Returns Promise<void>