jsfirebase.database().ref('.info/connected').on('value', function(snapshot) {
// If we're not currently connected, don't do anything.
if (snapshot.val() == false) {
return;
};
...>接続性 - この実装は Cloud Firestore ではなく Realtime Database との接続性を測定します。