Fumitoshi Ukai (鵜飼文敏) wrote:
> On Thu, Nov 19, 2009 at 1:00 PM, Greg Wilkins <gregw at webtide.com
>
> var ws = new WebSocket("ws://mysite.com> <http://mysite.com>","myprotocol");
> ...
> So if the next line in the script isUnfortunately this does not appear to be the implementation in chrome
>
> ws.> >
> there is a race between if the onopen function will
> be assigned and if the background connection has been established?
>
>
> I believe open event is just queued at the moment, and it will be fired
> later when _javascript_ becomes idle.
at least. If you step through with a debugger, then the close happens
before my ws.onclose function is assigned, as thus it is never called.
Even if it was implemented as you say, I'm wondering if the API should
be less dependent on the single threaded nature of current _javascript_
implementations.
cheers
Note Well: Messages sent to this mailing list are the opinions of the senders and do not imply endorsement by the IETF.