Is it possible to host a express and socket.io app on Firebase Hosting?

此生再无相见时 提交于 2019-12-13 02:44:42

问题


I've been following Firebase cloud functions for a while now. Recently I came across hosting Node.js apps on Firebase Hosting, but it was using just express.

Can we host socket.io apps on Firebase?


回答1:


Firebase employee here

This is not possible with Firebase Hosting, even if it's hooked up to Cloud Functions to provide a backend.

If you want realtime socket communication between clients, consider using Realtime Database as a conduit between them. You'll get more done, write less code, and scale easier this way.



来源:https://stackoverflow.com/questions/48370200/is-it-possible-to-host-a-express-and-socket-io-app-on-firebase-hosting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!