Dumebi Okolo
server.js
: This will be our main server file.index.html
:index.html
file’s <script>
tag.node server.js.
http://localhost:3000
in your web browser. You should see the chat interface.file
to your HTML:socket.join(roomName)
when a user enters a room.io.to(roomName).emit('message', ...)
to send messages to a specific room.npm install mongoose