Skip to content

Instantly share code, notes, and snippets.

@finnp
Created September 23, 2015 13:17
Show Gist options
  • Save finnp/5057013185693820b3dd to your computer and use it in GitHub Desktop.
Save finnp/5057013185693820b3dd to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="http://192.168.1.229:9582/socket.io/socket.io.js"></script>
</head>
<body>
<script>
var socket = io('http://192.168.1.229:9582')
socket.on('connection', function (socket) {
console.log('connected...')
socket.emit('x', 90)
socket.emit('y', 90)
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment