Interface IOInterface<I>

Common interface for I/O

interface IOInterface<I> {
    receive?(io, handler): void;
    send?(io, message): boolean;
}

Type Parameters

Methods

Methods

  • Parameters

    • io: I
    • handler: ((message) => boolean)
        • (message): boolean
        • Parameters

          Returns boolean

    Returns void