HISTORY
Improve performance for large messages across many chunks (#130 Trent Willis)
Add
createConnection
option for http or https requests (#120 Vasily Lavrov)Support HTTP 302 redirects (#116 Ryan Bonte)
Prevent sequential errors from attempting multiple reconnections (#125 David Patty)
Add
new
to correct test (#111 Stéphane Alnet)Fix reconnections attempts now happen more than once (#136 Icy Fish)
Add dispatchEvent to EventSource (#101 Ali Afroozeh)
Added
checkServerIdentity
option (#104 cintolas)Surface request error message (#107 RasPhilCo)
Fix issue where a unicode sequence split in two chunks would lead to invalid messages (#108 Espen Hovlandsdal)
Change example to use
eventsource/ssestream
(Aslak Hellesøy)
Check for
window
existing before polyfilling. (#80 Neftaly Hernandez)
Pass withCredentials on to the XHR. (#79 Ken Mayer)
Fix proxy not working when proxy and target URL uses different protocols. (#76 Espen Hovlandsdal)
Make
close()
a prototype method instead of an instance method. (#77 Espen Hovlandsdal)
Reconnect if server responds with HTTP 500, 502, 503 or 504. (#74 Vykintas Narmontas)
Add missing
removeEventListener
-method. (#51 Yucheng Tu / Espen Hovlandsdal)Fix EventSource reconnecting on non-200 responses. (af84476 Espen Hovlandsdal)
Add ability to customize https options. (#53 Rafael Alfaro)
Add readyState constants to EventSource instances. (#66 Espen Hovlandsdal)
Fix
onConnectionClosed
firing multiple times resulting in multiple connections. (#61 Phil Strong / Duncan Wong)Remove unneeded isPlainObject check for headers. (#64 David Mark)
Don't include test files in npm package. (#56 eanplatter)
Fix
close()
for polyfill. (#52 brian-medendorp)Add http/https proxy function. (#46 Eric Lu)
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).Compatibility with webpack/browserify. (#44 Adriano Raiano).
Refactor tests to support Node.js 0.12.0 and Io.js 1.1.0. (Aslak Hellesøy)
Expose
status
property onerror
events. (#40 Adriano Raiano)
Bugfix: Made message properties enumerable. (#37 Golo Roden)
Bugfix: Fix message type. (#33 Romain Gauthier)
Reformatted all code to 2 spaces.
Expose
lastEventId
on messages. (#28 mbieser)
Bugfix: old "last-event-id" used on reconnect (#27 Aslak Hellesøy)
Bugfix: EventSource still reconnected when closed (#24 FrozenCow)
Allow unauthorized HTTPS connections by setting
rejectUnauthorized
to false. (Aslak Hellesøy)
Explicitly raise an error when server returns http 403 and don't continue (#20 Scott Moak)
Graceful handling of parse errors (#19 Aslak Hellesøy)
Switched from testing with Nodeunit to Mocha (Aslak Hellesøy)
Add Accept: text/event-stream header (#17 William Wicks)
Add no-cache and https support (#10 Einar Otto Stangvik)
Ensure that Last-Event-ID is sent to the server for reconnects, as defined in the spec (#8 Einar Otto Stangvik)
Verify that CR and CRLF are accepted alongside LF (#7 Einar Otto Stangvik)
Emit 'open' event (#4 Einar Otto Stangvik)
Automatic reconnect every second if the server is down. Reconnect interval can be set with
reconnectInterval
(not in W3C spec). (Aslak Hellesøy)
Jison based eventstream parser (#2 Einar Otto Stangvik)
Use native EventListener (Aslak Hellesøy)
0.0.1
First release
Last updated