aslakhellesoy/eventsource-node — Issue #3: Parser error 
Author: matzew
Created: 2012-02-10 18:04:50+00:00
State: open

got the following exception when trying the mentioned SSE example, with this lib (installed it via npm / also replaced the code in my npm_repo with the code from here)

manni:SSE-demo matzew$ node client.js

/Users/matzew/node_modules/eventsource/lib/eventstream.js:60
throw new Error(str);
^
Error: Parse error on line 1:
:
-^
Expecting 'colon', 'char', 'space', got 'eol'
at Object.parseError (/Users/matzew/node_modules/eventsource/lib/eventstream.js:60:11)
at Object.parse (/Users/matzew/node_modules/eventsource/lib/eventstream.js:137:22)
at Object.parse (/Users/matzew/node_modules/eventsource/lib/eventstream.js:401:56)
at IncomingMessage. (/Users/matzew/node_modules/eventsource/lib/eventsource.js:24:25)
at IncomingMessage.emit (events.js:67:17)
at HTTPParser.onBody (http.js:115:23)
at Socket.ondata (http.js:1124:24)
at TCP.onread (net.js:348:27)