All notable changes to this project will be documented in this file.
4.0.0 - 2020-11-19
- BREAKING: Only support Node v10 and higher
- BREAKING: Remove CORS-handling - use
cors
module or similar
3.1.0 - 2018-06-06
- Add ability to disable CORS-checking by passing
false
as thecors
option
3.0.0 - 2017-11-27
- BREAKING: Only support Node v4 and higher
2.0.6 - 2017-03-29
- Stop "keep-alive" ping when calling
close()
on a channel
2.0.5 - 2017-02-10
- Fixed
flush()
deprecation warnings
- Content-Type header now includes charset (UTF-8)
- Make connection count more reliable (William Neely)
2.0.0 - 2015-07-23
jsonEncode
will now encode any message (previously, specifying a string tosend
would send a non-JSON encoded string)addClient()
callback is now asyncronous in all cases, and provides anError
instance on CORS-failuresendMissedEvents()
is renamed tosendEventsSinceId()
message
event now provideschannel
as first argument to listeners, to be consistent withconnect
anddisconnect
events
- A much richer README with proper documentation for options, methods and events
- Examples of usage with Node.js HTTP server, express.js and hapi
1.0.6 - 2015-07-23
- Call
flush()
on response object if it exists, fixes compression middleware in express
1.0.4 - 2015-02-03
- Use
0
instead ofInfinity
for socket timeouts.
- Changelog!