sguiheux / EventSource

EventSource "polyfill" with custom headers
20 stars 10 forks source link

set 'Last-Event-ID' header #25

Open mucer opened 5 years ago

mucer commented 5 years ago

Currently the lastEventId is set as query parameter. But it should also set the header field 'Last-Event-ID'

https://html.spec.whatwg.org/multipage/iana.html#last-event-id

Its already in the code, but commented: https://github.com/sguiheux/EventSource/blob/eb04814bc359ac5811094d4aa91447b502316c22/eventsource.js#L572