Update to use new eventsource API
Merge pull request #1 from pranavraja/master

Update to use new eventsource API