[whatwg] Real-time networking in web applications and games

Mark Frohnmayer mark.frohnmayer at gmail.com
Mon Mar 22 17:16:49 PDT 2010

Hi all,

I am currently engaged by InstantAction to develop a minimum-footprint
web API prototype plugin for real-time networked games.  The purpose
of this work is to propose to this standards process a path for
real-time networked client/server and peer-to-peer games and
applications to live as first-class citizens in the browser app

This work has involved separating the lightweight UDP-based connection
protocol from IA's Torque game technologies into a standalone C API
(torque_sockets), and the first drafting of the TorqueSocket
interface, patterned after the WebSocket interface from Google.  Where
WebSocket allows for a persistent TCP connection to a remote host,
TorqueSocket enables in its essence  "connected UDP" connections to a
remote host as well as peer-introduced connections.

The first draft of the TorqueSocket specification can be found here:
, which includes the high level requirements, a proposed API spec and
some details on the connection handshake and wire protocol.

The torque_sockets C API definition can be found here:

I was pointed in the spec to
and also noticed section Peer-to-peer connections -- both
look like they are works-in-progress.  Is anyone actively working on
this functionality in the HTML5 spec?  Any feedback about TorqueSocket
and the approach would be welcome.


More information about the whatwg mailing list