Created
September 13, 2022 10:32
-
-
Save hieptl/74c37cae1a43f916842602f29da2759a to your computer and use it in GitHub Desktop.
Node.js Socket.io - index.html - 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Chat app</title> | |
<!-- load Socket.io library --> | |
<script | |
src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/3.1.1/socket.io.js" | |
integrity="sha512-oFOCo2/3DtjrJG4N27BjSLQWoiBv171sK6a+JiWjp/7agxC2nCUP358AqzxkBUb5jX8g6CYLPdSKQTbC0weCwA==" | |
crossorigin="anonymous" | |
></script> | |
<!-- Script to emit/receive events from socket.io server --> | |
<script defer src="chat.js"></script> | |
</head> | |
<body> | |
<h1>It works!</h1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment