Kannect_App is a real-time chat application built with Node.js and Socket.IO, enabling instant messaging between users in a chat room environment.
- Real-time chat with instant message delivery
- Join and leave notifications for users
- Smooth UI with message alignment (left/right)
- Sound alert on incoming messages
- Built-in broadcast system using
socket.broadcast.emit()
- Node.js
- Socket.IO
- HTML, CSS, JavaScript
- Audio playback for message alerts
Kannect_App/
│
├── index.html # Frontend chat interface
├── style.css # Styling for the UI
├── script.js # Client-side socket logic
├── server.js # Node.js + Socket.IO server
├── ting.mp3 # Notification sound
├── .gitignore # Ignoring node_modules and other files
├── package.json # Node dependencies and scripts
git clone https://github.com/Kannikakr/Kannect_App.git
cd Kannect_Appnpm installnode server.js
⚠️ Make sure port 8000 is free. The server runs onhttp://localhost:8000.
Simply open index.html in your browser.
Each tab/window acts like a new user.
node_modules/
.env
.DS_Store. I have used node_modules/. - When a user joins, their name is prompted and shared with others using
socket.broadcast.emit('user-joined'). - Messages are sent with
socket.emit('send')and received by others withsocket.broadcast.emit('receive'). - When a user disconnects,
socket.broadcast.emit('left')informs others.
(To be added soon)
Feel free to contribute, fork, or ⭐ this repo!