Skip to content

Commit

Permalink
Fix typo in example
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed May 16, 2012
1 parent 7c79806 commit df7d4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This library implements the [EventSource](http://dev.w3.org/html5/eventsource/)
var EventSource = require('eventsource');

es = new EventSource('http://googlecodesamples.com/html5/sse/sse.php');
es.onmessage = function(message) {
es.onmessage = function(e) {
console.log(e.data);
};
es.onerror = function() {
Expand Down

0 comments on commit df7d4c6

Please sign in to comment.