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.

19 lines
387 B

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Hello world</title>
  5. </head>
  6. <script src = "../../socket.io/socket.io.js"></script>
  7. <script>
  8. var socket = io();
  9. socket.emit('register', 'jeffery');
  10. socket.on('sendRooms', function(data)
  11. {
  12. console.log("got rooms");
  13. console.log(data);
  14. document.write(data);
  15. });
  16. </script>
  17. <body>Hello world</body>
  18. </html>