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

Regarding cleanliness, I'll come up with a suggestion tomorrow - for academic reasons if nothing else.

In terms of speed, websockets do come with some overhead, so SSE can theoretically be faster for short string data. That would require a hand-crafted parser, though. In ws I've pulled a heap of tricks, both with processor state and buffers reuse/pooling/stacking, in order to be as fast as possible. The same effort could be made here.