Last active
July 25, 2019 06:53
-
-
Save bigsnarfdude/917b6cae93ef154009c0141162801f78 to your computer and use it in GitHub Desktop.
client.js.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello world</title> | |
</head> | |
<script src = "/socket.io/socket.io.js"></script> | |
<script> | |
var socket = io('http://localhost:8000'); | |
socket.emit('clientEvent', | |
{ e : 5, | |
walk : 4, | |
fast_walk : 3, | |
walk_time : 2, | |
fast_walk_time : 1, | |
rest_time : 0 | |
}); | |
</script> | |
<body>Hello world</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment