V
V
Vitaly2019-05-04 19:06:01
JavaScript
Vitaly, 2019-05-04 19:06:01

How to run binary stream from client to server?

I want to create a stream from the browser (or other client) to the server. Can this be done using HTTP?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-05-04
@vitali1995

It is possible, via websocket. There is even a ready-made npm package for these purposes websocket-stream

Use HTML5 websockets using the Node Streams API.
Usage
This module works in Node or in Browsers that support WebSockets. You can use browserify to package this module for browser use.

Or do you need pure http?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question