I'm using Firebase on the web, with Javascript.
how can I close the connection to the realtime DB ?
var config = {....};
firebase.initializeApp(config);
// get the firebase DB reference
var db = firebase.database().ref();
//doing something
db.push(....);
// close the firebase connection ???
db.close() || firebase.disconnect() || or something like that...
Tried lots of functions - goOffline() , close() , ect.
But nothing does the trick.
Any help would be appreciated... tnx mates