Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script(src='assets/js/core/libraries/jquery.min.js')
- script(src='/socket.io/socket.io.js')
- div(id='counter')
- script.
- var socket = io();
- //var socket = io.connect(window.location.hostname);
- socket.on('timer', function (data) {
- $('#counter').html(data.current);
- });
Advertisement
Add Comment
Please, Sign In to add comment