Search code examples
node.jsfirebasefirebase-hosting

How to start nodejs server from Firebase server?


I'm using a socketIO for real time feature in my app. So, I have a problem when i deployed my app to Firebase hosting. My problem is how to run "node filename.js" command to start nodejs server in Firebase hosting ? Thanks for any helping .


Solution

  • Firebase Hosting only serves static content, or dynamic content served through Cloud Functions integration.

    You can't take control of the socket layer with things like socketIO. But you can use Realtime Database to send messages back and forth between client and server.