Skip to main content


new ModelResponseObserver()

A ModelResponseObserver conform to the Observable's Observer contract. It accepts either an Observer or three optional callbacks which correspond to the Observer methods onNext, onError, and onCompleted. The ModelResponseObserver wraps an Observer to enforce a variety of different invariants including:

  1. onError callback is only called once.
  2. onCompleted callback is only called once.
response/ModelResponseObserver.js, line 3