A simple, pure JavaScript chat app built using Node.js express.js and socket.io
You can test this app out live here: https://chatapp-qh55.onrender.com
Make sure you have Node.js and npm install.
- Clone or Download the repository
git clone https://github.com/abdul0398/ChatApp $ cd Real-Time-Chat-Application
- Install Dependencies
npm install
- Start the Application
node app.js
Application runs from localhost:3000.
Having an active connection opened between the client and the server so client can send and receive data. This allows real-time communication using TCP sockets. This is made possible by Socket.io.
The client starts by connecting to the server through a socket(maybe also assigned to a specific namespace). Once connections is successful, client and server can emit and listen to events.