eventsource
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,3 +0,7 @@ | ||
# [0.1.0](https://github.com/aslakhellesoy/eventsource-node/compare/v0.0.10...0.1.0) | ||
# [0.1.1](https://github.com/aslakhellesoy/eventsource-node/compare/v0.1.0...v0.1.1) | ||
* Bugfix: Fix message type. ([#33](https://github.com/aslakhellesoy/eventsource-node/pull/33) Romain Gauthier) | ||
# [0.1.0](https://github.com/aslakhellesoy/eventsource-node/compare/v0.0.10...v0.1.0) | ||
* Bugfix: High CPU usage by replacing Jison with port of WebKit's parser. ([#25](https://github.com/aslakhellesoy/eventsource-node/issues/25), [#32](https://github.com/aslakhellesoy/eventsource-node/pull/32), [#18](https://github.com/aslakhellesoy/eventsource-node/issues/18) qqueue) | ||
@@ -4,0 +8,0 @@ * Reformatted all code to 2 spaces. |
@@ -185,3 +185,3 @@ var http = require('http') | ||
var type = eventName || 'message'; | ||
_emit(type, new MessageEvent('message', { | ||
_emit(type, new MessageEvent(type, { | ||
data: data.slice(0, -1), // remove trailing newline | ||
@@ -188,0 +188,0 @@ lastEventId: lastEventId |
{ | ||
"name": "eventsource", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "W3C compliant EventSource client for Node.js", | ||
@@ -22,3 +22,4 @@ "keywords": [ | ||
"mbieser <29erpilot@gmail.com>", | ||
"qqueue <queue@hakase.org>" | ||
"qqueue <queue@hakase.org>", | ||
"Romain Gauthier" | ||
], | ||
@@ -43,3 +44,3 @@ "repository": { | ||
"devDependencies": { | ||
"mocha": "~1.17.1" | ||
"mocha": "~1.19.0" | ||
}, | ||
@@ -46,0 +47,0 @@ "scripts": { |
# EventSource [![Build Status](https://secure.travis-ci.org/aslakhellesoy/eventsource-node.png)](http://travis-ci.org/aslakhellesoy/eventsource-node) [![Dependencies](https://david-dm.org/aslakhellesoy/eventsource-node.png)](https://david-dm.org/aslakhellesoy/eventsource-node) [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/aslakhellesoy/eventsource-node/trend.png)](https://bitdeli.com/free "Bitdeli Badge") | ||
[![NPM](https://nodei.co/npm/eventsource.png?stars&downloads)](https://nodei.co/npm/eventsource/) | ||
[![NPM](https://nodei.co/npm/eventsource.png?stars&downloads)](https://nodei.co/npm/eventsource/) | ||
[![NPM](https://nodei.co/npm-dl/eventsource.png)](https://nodei.co/npm/eventsource/) | ||
@@ -18,8 +18,8 @@ | ||
var es = new EventSource('http://googlecodesamples.com/html5/sse/sse.php'); | ||
var es = new EventSource('http://demo-eventsource.rhcloud.com/'); | ||
es.onmessage = function(e) { | ||
console.log(e.data); | ||
console.log(e.data); | ||
}; | ||
es.onerror = function() { | ||
console.log('ERROR!'); | ||
console.log('ERROR!'); | ||
}; | ||
@@ -59,2 +59,1 @@ ``` | ||
Note that for Node.js < v0.10.x this option has no effect - unauthorized HTTPS requests are *always* allowed. | ||
44818
11
1066
58