W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] Thread to run Web Socket feedback from the protocol ?

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 9 Dec 2009 09:47:21 -0800
Message-ID: <63df84f0912090947x6a699933oc2fd206a4e4a6174@mail.gmail.com>
On Wed, Dec 9, 2009 at 9:34 AM, Ian Hickson <ian at hixie.ch> wrote:
> On Wed, 9 Dec 2009, Alexey Proskuryakov wrote:
>> Data from network is only processed as an event loop task
> I do not believe this is accurate. It certainly isn't what is specced.

In XMLHttpRequest this is certainly accurate. You will never see
.responseText changing in the middle of an execution thread, it's
always changed in response of a task run from the event loop. This
task can (and IMO should) synchronously fire the 'progress' event
(within the usual limitations of never firing that event more often
than every 50ms).

/ Jonas
Received on Wednesday, 9 December 2009 09:47:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC