News for hackers. Stuff that matters.
Re:The Need for Web UDP by shurcooL on Wednesday July 26, 2017 @05:29PM (#14860540)
Are people aware of https://www.w3.org/TR/tcp-udp-sockets/? I didn't see it mentioned so far.
Re:The Need for Web UDP by mrmoka on Wednesday July 26, 2017 @05:41PM (#14860630)
This spec been there for very long time, and has been adopted by FirefoxOS (deprecated platform). Which exposes low-level access to establish pure TCP and UDP connections with permissions flow by environment.

It exposes many security concerns, that's why WebSockets were more favourable over TCPSocket. We want similar for UDP.

Re:The Need for Web UDP by LunaSea on Wednesday July 26, 2017 @06:56PM (#14861143)
Not having raw TCP means you can't speak to any existing TCP protocol through a browser. It might not be a useful feature but I think that not taking it into account is an issue because most use cases can't be implemented with WebSockets.
Re:The Need for Web UDP by mrmoka on Wednesday July 26, 2017 @07:04PM (#14861192)
Ability to connect to raw TCP or UDP from a browser is a major security hole.

Due to that, WebSockets were created were handshake is handled by browser transparently from developer ensuring port scanning is not possible. As well as to preserver origin-based security model of HTTP. Which we want for WebUDP as well.