W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2014

Reminder: Disconnect between Streams and DataChannel API models

From: Harald Alvestrand <harald@alvestrand.no>
Date: Mon, 26 May 2014 03:42:06 -0400
Message-ID: <5382F04E.2050708@alvestrand.no>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
Just a reminder.... at the recent retreat, the question of whether we
can use / adapt the Sockets API was brought up again, with particular
reference to this proposal:

https://dvcs.w3.org/hg/streams-api/raw-file/tip/Overview.htm

This API proposal is based on a byte-stream model, not a datagram model.
It is therefore not possible to use the exact same model with either
WebSockets or the DataChannel APIs.

The adaptation in that draft for XHR suggests that a single datagram may
be a Stream, but this does not do anything to solve the pushback problem
for a sequence of datagrams such as is naturally carried by DataChannels.

Anyone wishing to propose using Streams in relationship with the
DataChannels API needs to present a proposal that explains what issues
they are trying to solve, and how they plan on making the Streams API
solve them. It's not obvious that there's a good fit here.

-- 
Surveillance is pervasive. Go Dark.
Received on Monday, 26 May 2014 07:42:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:58 UTC