This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
Update EventSource to support chunked data (#21)
Previously, our copy of EventSource didn't work when a line came which hadn't been terminated with a new line (chunked data). In that case, the split('\n') call would give you junk data which the rest of the logic couldn't handle.
There might be another edge case where the XHR request finishes before the full line comes in but that's outside the scope of this change.