Created
October 22, 2015 03:03
-
-
Save WowSuchRicky/c66b021030e65f79f2f9 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
| io.sockets.on("connection", function (socket) { | |
| "use strict"; | |
| console.log("Socket initialized"); | |
| var lastEmit = new Date().getTime(); | |
| socket.on("clearscreen", function (data) { | |
| io.sockets.emit("clearscreen", data); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment