einaros/eventsource-node — comment on commit 3ec68ad28b0fd29028c4b0e7e15bb9956f29ca44
File: lib/eventsource.js line 20
By aslakhellesoy:

Great work!

It would be nice if we could just feed the chunks straight to the parser as they come in so we don't have to chop them up ourselves:

```javascript
res.on('data', function (chunk) {
eventstream.parse(chunk.toString('UTF-8'), function(message) {
// And it would be nice if it also came out as a MessageEvent from the paser
});
});
```

Do you think that's possible? I'm not familiar with jison, but it looks like parse resets state every time it's called.