How to close firebase connection in node.js

前端 未结 1 1202
生来不讨喜
生来不讨喜 2021-01-17 23:26

Below is a simple example how I am using firebase:

let firebase = require(\'firebase\');
firebase.initializeApp({
  serviceAccount: \'./config/firebase.json\         


        
相关标签:
1条回答
  • 2021-01-17 23:59

    This is something that has been fixed in the version 3.4.1 of the JavaScript SDK.

    firebase.database().goOffline() now properly releases the database so the Node.js process can exit.

    0 讨论(0)
提交回复
热议问题