try nodejs instead

This commit is contained in:
2019-07-06 20:59:45 -07:00
parent 2acb7dcd82
commit e79c419e40
4 changed files with 62 additions and 0 deletions

15
index.html Normal file
View File

@@ -0,0 +1,15 @@
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io();
console.log("loaded socketio");
socket.on('connect', function(){
socket.send('hi');
socket.on('data', function(data){
console.log(data);
});
});
</script>
</head>
</html>