Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.