Created
September 26, 2016 09:46
-
-
Save alcalyn/2af5b511b0f163797fd1c23c1ed95b14 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
setInterval(function () { | |
$.ajax({ | |
type: 'get', | |
url: 'api/chat/messages', | |
success: displayNewMessages | |
}); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment