Skip to content

Instantly share code, notes, and snippets.

@bigsnarfdude
Last active July 25, 2019 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigsnarfdude/917b6cae93ef154009c0141162801f78 to your computer and use it in GitHub Desktop.
Save bigsnarfdude/917b6cae93ef154009c0141162801f78 to your computer and use it in GitHub Desktop.
client.js.html
<!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