Created
September 13, 2022 10:33
-
-
Save hieptl/94b260b874cd82473d49e9ad142aaaab to your computer and use it in GitHub Desktop.
Node.js Socket.io - chat.js - 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
/ FILE /client/chat.js | |
console.log('chat.js file loaded!') | |
// IMPORTANT! By default, socket.io() connects to the host that | |
// served the page, so we dont have to pass the server url | |
var socket = io.connect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment