JavaScript WebSockets with UDP?

user142019 picture user142019 · Jan 11, 2011 · Viewed 66.2k times · Source

I'm writing a JavaScript Application that has to receive a huge amount of data from other users. It is not important if some of this data gets lost. Is there some way of using JavaScript WebSockets with UDP instead of TCP?

Answer

Chad picture Chad · Feb 9, 2012

It sounds like what you're waiting for is WebRTC which is working it's way through the standards process. WebSockets, as other people have pointed out, run over TCP as a result of initiating with an HTTP Upgrade.