ResponseHandler handles the responses coming from the server

Constructors

Properties

_currentObserver: null | ResponseHandlerObserver
_pendingObservers: ResponseHandlerObserver[]

Methods

  • Enqueue a new observer for handling a response

    Parameters

    • observer: ResponseHandlerObserver

      that will handle the received data

    Returns void

  • Notify the connection error to current observer and cancel the other observers

    Parameters

    • errorString: string

      the error to notify

    Returns void