Created
October 12, 2017 12:40
-
-
Save nhanco/76eb8326dbd5e1b3101e8c204da99f84 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
$(document).ready(function () { | |
// socket.io | |
let socket = io.connect(window.location.href,{'forceNew':true }); | |
// notification | |
socket.on('notification', function(data){ | |
notification(data) | |
}); | |
// end socket io | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment