How to send the blob in real time?

Asked

Viewed 112 times

0

Have some way to send the blob to the server in real time (streaming)?
I searched on sockets but did not have good results...

  • The way the question is going, it’s hard to answer, but I think what you’re looking for is either Websockets or maybe Webrtc (depending on the application).

  • has some simple example of using websockets ?

  • 1

    Personally, no, I’ve never used it in practice. Maybe others can help you better, but since this is something that requires server-side support (i.e. it goes beyond simple HTTP, it’s a separate protocol), it would be nice if you indicated which platform you use.

1 answer

1

Use Websockets to connect to the server and binary transfer. Note that not all browsers accept binary mode from Websockets. A good start to learning Websockets is using Node.js. Maybe I can help you more about this if you specify your question better.

  • I gave up temporarily to use websockets for lack of money, need a VPS or dedicated hosting plan to run Node.js and websockets, I’m using webrtc, even with the compatibility problem of some browsers...

  • 1

    You are wrong about needing a dedicated VPS, you can use Node.js on your own computer, regardless of the platform. But if you want to go online, you can even test Node.js using Openshift. https://www.openshift.com/

  • I’m confused using Openshift, how I run the scripts ?

  • And how I run Node.js locally as a server?

  • 1

    Start by downloading the installer at http://nodejs.org/. Once installed create a main.js file with the example of the homepage of the site and run on a terminal with Node main.js. Regarding Openshift, better create another question with this tag.

  • but what would be the link to access the js running on Node.js ? my ip?

  • in brazil I don’t think I can use ip as a server anymore, or ?

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.