Created
June 15, 2017 14:48
-
-
Save milingo/a21639bdf741d6f8131d327c71179785 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
<script src="/socket.io/socket.io.js"></script> | |
<script> | |
const socket = io('http://localhost:3000'); | |
socket.on('tic', (data) => { | |
console.log(data); | |
data.seconds++; | |
socket.emit('tac', data); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment