Created
October 1, 2018 10:35
-
-
Save monorkin/33a4c6296049eae6742f17992228be68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var evtSource = new EventSource('/stream'); | |
evtSource.onmessage = function(e) { | |
console.log('DATA', e.data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment