Interface Outlet<Out>

Outlet of a node that supports push events and pull listening.

interface Outlet<Out> {
    on(name, listener): this;
    push(data, options?): Promise<void>;
}

Type Parameters

Implemented by

Methods

Methods

  • Event when a data frame is pulled

    Parameters

    • name: "pull"

      receive

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

      Event callback

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

          Returns void | Promise<void>

    Returns this

  • Push data to the outlet

    Parameters

    Returns Promise<void>

    Push promise