[Bug 13842] New: One issue that I have noticed is that there is no way to create an EventSource and attach event listeners to it before it connects to the server. This means that there is no way to ensure that no messages are missed between the creation of the EventSourc

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13842

           Summary: One issue that I have noticed is that there is no way
                    to create an EventSource and attach event listeners to
                    it before it connects to the server.  This means that
                    there is no way to ensure that no messages are missed
                    between the creation of the EventSourc
           Product: WebAppsWG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#top
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Server-Sent Events (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


Specification: http://dev.w3.org/html5/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
One issue that I have noticed is that there is no way to create an EventSource
and attach event listeners to it before it connects to the server.  This means
that there is no way to ensure that no messages are missed between the
creation of the EventSource instance and the listeners being attached.    One
possible solution would be to move the connection logic from the constructor
to a method (e.g. open).

Posted from: 207.67.82.250
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101
Firefox/6.0

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Friday, 19 August 2011 20:51:14 UTC