javascript - Why no UDP connection via browser even with HTML5? -


why can not have udp connection between browser , server? why tcp connection possible (web socket) not udp?

html5 not allow arbitrary tcp connections.

instead, web sockets special new protocol built on on tcp allows bidirectional communication.

similarly, webrtc special new protocol built on udp allows peer-to-peer communication.

allowing arbitrary socket connections major security hole.


Comments