A StreamListener defines any of three potential callbacks to be triggered by a stream event - the reception of a message, an error being thrown onto the stream, or the stream being closed

Type Parameters

  • T

    The type of messages carried by the stream

Hierarchy

  • StreamListener

Properties

onClose?: CloseFn
onError?: ErrorFn
onMessage?: MessageFn<T>

Generated using TypeDoc