Skip to main content
browser.ObservationPoll Hosts the verified observe.poll program for one polling loop: report each observation or failure and wait the returned delay. The program slows polling once an observation stops changing and retries a temporary failure on the graph’s retry schedule, never sooner than the server’s Retry-After.

Constructors

constructor

• new ObservationPoll()

Methods

observed

▸ observed(version, now?): number An unsettled observation of version; returns the delay before the next poll.

Parameters

Returns

number

failed

▸ failed(error): number A failed poll; returns the delay before the next one, or throws the error when the transport does not call it temporary.

Parameters

Returns

number