Options
All
  • Public
  • Public/Protected
  • All
Menu

StreamListener

An interface defining a listener for the Stream type.

Type parameters

  • T

    the type of objects received by the stream with which this listener is registered.

Hierarchy

  • StreamListener

Index

Methods

Methods

onError

  • onError(error: Error): void
  • Called whenever the stream with which this listener is registered produces an error.

    Parameters

    • error: Error

      the error produced by the stream

    Returns void

onNext

  • onNext(data: T): void
  • Called whenever the stream with which this listener is registered receives an object from the remote source.

    Parameters

    • data: T

      the object received by the stream

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc