not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
387 B

<!DOCTYPE html>
<html>
<head>
<title>Hello world</title>
</head>
<script src = "../../socket.io/socket.io.js"></script>
<script>
var socket = io();
socket.emit('register', 'jeffery');
socket.on('sendRooms', function(data)
{
console.log("got rooms");
console.log(data);
document.write(data);
});
</script>
<body>Hello world</body>
</html>