The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > / > Settings > experimentalAutoDetectLongPolling

Settings.experimentalAutoDetectLongPolling property

Configures the SDK's underlying transport (WebChannel) to automatically detect if long-polling should be used. This is very similar to experimentalForceLongPolling, but only uses long-polling if required.

This setting will likely be enabled by default in future releases and cannot be combined with experimentalForceLongPolling.

Signature:

experimentalAutoDetectLongPolling?: boolean;