Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EmitterFactory

A factory that creates data shared between StreamImpl and Emitter.

Hierarchy

Index

Methods

emitter

  • Create a new Emitter

    Parameters

    • stream: StreamImpl

      the stream that uses the Emitter to fire events

    Returns Emitter

getCloseCallback

  • getCloseCallback(): close

getErrorCallback

  • getErrorCallback(): error

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.