WebExperimentalLongPollingOptions class

Options of the web transport (WebChannel) for when it uses long polling. Port of WebExperimentalLongPollingOptions of the JS SDK.

This class is supported like the rest of Settings. The word "Experimental" in its name, and in the names of the long-polling settings, comes from the JS SDK (and FlutterFire), whose names are kept for compatibility; it does not mark the API as experimental here.

See Settings.webExperimentalAutoDetectLongPolling, Settings.webExperimentalForceLongPolling and Settings.webExperimentalLongPollingOptions.

final Settings settings = Settings(
  webExperimentalForceLongPolling: true,
  webExperimentalLongPollingOptions: const WebExperimentalLongPollingOptions(
    timeoutDuration: Duration(seconds: 25),
  ),
);

Only the web transport uses these options; the gRPC transport ignores them.

Constructors

WebExperimentalLongPollingOptions({Duration? timeoutDuration})
Creates long-polling options. Without timeoutDuration the default timeout of 30 seconds applies.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeoutDuration → Duration?
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override