My app receives a stream socket.io-stream which is emitted at browser and writes to a file using fs. Stream content is binary. But instead of writing to file I want to upload to box.com via their sdk which requires a readstream.
I have tried to use the socket stream directly to sdk upload method but it fail. The sdk upload method only works with fs.createReadStream method.
I need to know with the duplexify pack whether I can create a duplex stream which reads from socket io stream and outputs to box upload sdk?
Thanks
My app receives a stream socket.io-stream which is emitted at browser and writes to a file using fs. Stream content is binary. But instead of writing to file I want to upload to box.com via their sdk which requires a readstream.
I have tried to use the socket stream directly to sdk upload method but it fail. The sdk upload method only works with fs.createReadStream method.
I need to know with the duplexify pack whether I can create a duplex stream which reads from socket io stream and outputs to box upload sdk?
Thanks