[html5] UDP websockets
dennis at efjot.de
Mon Aug 8 06:09:04 PDT 2011
Am 07.08.2011, 20:41 Uhr, schrieb Ian Hickson <ian at hixie.ch>:
> On Sun, 7 Aug 2011, SiPlus wrote:
>> Hai! When there will be standard for UDP websockets?
> Never, WebSockets is by definition TCP. :-)
> However, there is already a UDP feature being specified, as part of
>> make multiplayer of my port to be compatible with DOS and Windows ports.
> Both WebSockets and the data UDP media stream described above require
> the receiving peer explicitly opt-in to the connection, so that we can
> prevent people from writing Web pages that connect to arbitrary remote
> servers like SMTP servers (to send spam) or anything else (e.g. to
> propagate malware/worms). There are no current plans to allow Web pages
> have access to raw sockets, either TCP or UDP.
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.
The underlying socket wouldn't be accessed that way and we can integrate
it with WebSockets.
More information about the Help