Interface Inlet<In>

Inlet of a node that supports pulling and events.

interface Inlet<In> {
    emit(name, arg): boolean;
    emit(name, event): boolean;
    emit(name, event): boolean;
    on(name, listener): this;
    pull(options?): Promise<void>;
}

Type Parameters

Implemented by

Methods

Methods

  • Event when a data frame is push to the node

    Parameters

    • name: "push"

      receive

    • listener: ((frame, options?) => void | Promise<void>)

      Event callback

        • (frame, options?): void | Promise<void>
        • Parameters

          Returns void | Promise<void>

    Returns this

  • Pull data from the inlet

    Parameters

    Returns Promise<void>

    Pull promise