W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: [EventSource] Question on event type

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 8 May 2012 19:52:22 +0000 (UTC)
To: Bryan Sullivan <blsaws@gmail.com>
cc: Glenn Maynard <glenn@zewt.org>, public-webapps@w3.org
Message-ID: <Pine.LNX.4.64.1205081952070.17060@ps20323.dreamhostps.com>
On Thu, 8 Sep 2011, Bryan Sullivan wrote:
>
> OK, maybe I'm getting closer to understanding this. From your example, 
> when the "event" field is set, it's not a "message" event that is 
> dispatched but an event of type "event name", so in order to see those 
> events, I need to use the addEventListener interface for the eventsource 
> object (they will not be delivered via the onmessage handler).
> 
> I modified my test to use that explanation and it does work. It would be 
> really great for the eventsource spec to have an example that explains 
> this.

There is one in the intro section now. Let me know if it's insufficient.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 8 May 2012 19:52:46 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:52 GMT