Last active
March 10, 2016 21:25
-
-
Save vdeturckheim/fbb4b35c83d56513e365 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("/chat-feed"); | |
evtSource.addEventListener("message", e => { | |
// e.data == the message that has been received | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment