问题
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