From c424340aaeedbf1772db06437e65ab252d7a90e5 Mon Sep 17 00:00:00 2001 From: Maneesh Tewani Date: Wed, 11 May 2022 15:38:24 -0700 Subject: [PATCH] Updated documentation for compat to include new database APIs (#6252) --- packages/firebase/compat/index.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/firebase/compat/index.d.ts b/packages/firebase/compat/index.d.ts index d28e37f48e6..f4114be49dd 100644 --- a/packages/firebase/compat/index.d.ts +++ b/packages/firebase/compat/index.d.ts @@ -6018,6 +6018,20 @@ declare namespace firebase.database { * ``` */ app: firebase.app.App; + /** + * Additional methods for debugging and special cases. + * + */ + INTERNAL: { + /** + * Force the use of WebSockets instead of long polling. + */ + forceWebSockets: () => void; + /** + * Force the use of long polling instead of WebSockets. This will be ignored if the WebSocket protocol is used in `databaseURL`. + */ + forceLongPolling: () => void; + }; /** * Modify this instance to communicate with the Realtime Database emulator. *