Using websocket-stream to upload file to Cloud Storage with Firebase Node.js?

橙三吉。 提交于 2020-01-06 08:48:29

问题


I am struggling with finding a good way to upload bigger files from the web browser to Google Cloud Storage in a Firebase project. Now I want to try the websocket-stream package. However I do not understand how to set it up in Firebase. Is it possible?

From the documentation you should do this in Node.js:

var websocket = require('websocket-stream')
var wss = websocket.createServer({server: someHTTPServer}, handle)

Where this is assumed:

var someHTTPServer = http.createServer();

How do I get someHTTPServer when I use Firebase?

来源:https://stackoverflow.com/questions/56237102/using-websocket-stream-to-upload-file-to-cloud-storage-with-firebase-node-js

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