timeoutDuration property

Duration? timeoutDuration
final

The longest time that the backend should hold a long-polling request open before it answers. Valid values are between 5 and 30 seconds, inclusive (checked by Settings); it is rounded to the nearest millisecond.

By default the hanging request of long polling times out after 30 seconds. A buffering proxy that made long polling necessary may close such requests sooner; a shorter timeout (for example 25 seconds) then keeps them from being cut off. See https://github.com/firebase/firebase-js-sdk/issues/6987.

Only the web transport uses this, and only while it long-polls (Settings.webExperimentalForceLongPolling, or a buffering proxy that Settings.webExperimentalAutoDetectLongPolling detected).

Implementation

final Duration? timeoutDuration;