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

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

From: Alexey Proskuryakov <ap@apple.com>
Date: Thu, 03 Dec 2009 13:43:10 -0800
Message-ID: <98070607-5D02-4AF5-9606-D9C780A1A991@apple.com>

On 03.12.2009, at 9:50, Alexey Proskuryakov wrote:

>> If server sends back handshake response and a data frame, and close  
>> immediately, fast enough to run JavaScript on browser, how  
>> readyState should be?
>
> I'd expect it to work in the same way it works for XMLHttpRequest -  
> e.g., in an onreadystate handler of XMLHttpRequest, readyState does  
> not change due to background processing of incoming data.


On the other hand, it can't possibly work like XMLHttpRequest - for  
whatever reason, the Web Sockets spec says that events are posted  
asynchronously. Maybe I'm not the last an only one to get confused by  
this difference from XMLHttpRequest events.

In light of this, I think that the test in question is incorrect.

- WBR, Alexey Proskuryakov
Received on Thursday, 3 December 2009 13:43:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:54 UTC