HISTORY
Last updated
Was this helpful?
Last updated
Was this helpful?
Improve performance for large messages across many chunks ( Trent Willis)
Add createConnection
option for http or https requests ( Vasily Lavrov)
Support HTTP 302 redirects ( Ryan Bonte)
Prevent sequential errors from attempting multiple reconnections ( David Patty)
Add new
to correct test ( Stéphane Alnet)
Fix reconnections attempts now happen more than once ( Icy Fish)
Add dispatchEvent to EventSource ( Ali Afroozeh)
Added checkServerIdentity
option ( cintolas)
Surface request error message ( RasPhilCo)
Fix issue where a unicode sequence split in two chunks would lead to invalid messages ( Espen Hovlandsdal)
Change example to use eventsource/ssestream
(Aslak Hellesøy)
Fix reconnect for polyfill. Only disable reconnect when server status is 204. (Aslak Hellesøy).
Drop support for Node 0.10.x and older (Aslak Hellesøy).
Renamed repository to eventsource
(since it's not just Node, but also browser polyfill). (Aslak Hellesøy).
Refactor tests to support Node.js 0.12.0 and Io.js 1.1.0. (Aslak Hellesøy)
Reformatted all code to 2 spaces.
Allow unauthorized HTTPS connections by setting rejectUnauthorized
to false. (Aslak Hellesøy)
Switched from testing with Nodeunit to Mocha (Aslak Hellesøy)
Automatic reconnect every second if the server is down. Reconnect interval can be set with reconnectInterval
(not in W3C spec). (Aslak Hellesøy)
Use native EventListener (Aslak Hellesøy)
First release
Check for window
existing before polyfilling. ( Neftaly Hernandez)
Pass withCredentials on to the XHR. ( Ken Mayer)
Fix proxy not working when proxy and target URL uses different protocols. ( Espen Hovlandsdal)
Make close()
a prototype method instead of an instance method. ( Espen Hovlandsdal)
Reconnect if server responds with HTTP 500, 502, 503 or 504. ( Vykintas Narmontas)
Add missing removeEventListener
-method. ( Yucheng Tu / Espen Hovlandsdal)
Fix EventSource reconnecting on non-200 responses. ( Espen Hovlandsdal)
Add ability to customize https options. ( Rafael Alfaro)
Add readyState constants to EventSource instances. ( Espen Hovlandsdal)
Fix onConnectionClosed
firing multiple times resulting in multiple connections. ( Phil Strong / Duncan Wong)
Remove unneeded isPlainObject check for headers. ( David Mark)
Don't include test files in npm package. ( eanplatter)
Fix close()
for polyfill. ( brian-medendorp)
Add http/https proxy function. ( Eric Lu)
Compatibility with webpack/browserify. ( Adriano Raiano).
Ignore headers without a value. (, Adriano Raiano)
Bugfix: Added missing origin property. (, Arnout Kazemier)
Expose status
property on error
events. ( Adriano Raiano)
Bugfix: Made message properties enumerable. ( Golo Roden)
Bugfix: Blank lines not read. (, Lesterpig)
Bugfix: Fix message type. ( Romain Gauthier)
Bugfix: High CPU usage by replacing Jison with port of WebKit's parser. (, , qqueue)
Provide Event
argument on open
and error
event (, Donghwan Kim)
Expose lastEventId
on messages. ( mbieser)
Bugfix: old "last-event-id" used on reconnect ( Aslak Hellesøy)
Bugfix: EventSource still reconnected when closed ( FrozenCow)
Explicitly raise an error when server returns http 403 and don't continue ( Scott Moak)
Added ability to send custom http headers to server (, Scott Moak)
Fix Unicode support to cope with Javascript Unicode size limitations (, Devon Adkisson)
Graceful handling of parse errors ( Aslak Hellesøy)
Add Accept: text/event-stream header ( William Wicks)
Add no-cache and https support ( Einar Otto Stangvik)
Ensure that Last-Event-ID is sent to the server for reconnects, as defined in the spec ( Einar Otto Stangvik)
Verify that CR and CRLF are accepted alongside LF ( Einar Otto Stangvik)
Emit 'open' event ( Einar Otto Stangvik)
Jison based eventstream parser ( Einar Otto Stangvik)