Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface StreamConstructionHelper

A helper that is used to provide the values to construct a StreamImpl object. StreamImpl and Emitter share internal data. In order to prevent cyclic dependencies and visibility issues, the shared data is created and passed into the StreamImpl constructor.

Hierarchy

Index

Methods

getCloseCallback

  • getCloseCallback(): close
  • Get callback to call when the stream is closed

    Returns close

    a close callback

getErrorCallback

  • getErrorCallback(): error
  • Get the callback to call in the case of an error

    Returns error

    an error callback

getListeners

  • Get the listeners that will be attached to the stream

    Returns Listeners

    an object mapping event names to arrays of callback functions

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.