[html5] UDP websockets

Ian Hickson ian at hixie.ch
Mon Aug 8 11:21:37 PDT 2011


On Mon, 8 Aug 2011, Dennis Joachimsthaler wrote:
> 
> Why not have a "UDP = true" switch in the WebSockets implementation that 
> - in the end - makes the same handshake as the TCP one but limits the 
> text message size to the UDP limit, the MTU. Then you could have a 
> readonly getMessageLimit() which would come out to 1500 for example.

UDP is a whole different ball game. It's lossy, it doesn't traverse 
through NATs, it has size limitations -- all of these things mean that the 
current WebSocket handshake and protocol simply wouldn't work with it.

If you adjust it to work, then you end up with what the spec has, which is 
the UDP data stream component of PeerConnection.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the Help mailing list