Coder Social home page Coder Social logo

multi-client-chat-app's Introduction

Multi-Client-Chat-App

The latest development of the Internet has brought the world into our hands. Everything happens through the internet from passing information to purchasing something. The Internet made the world a small circle. This project is also based on the internet and it shows the importance of chat applications in day-to-day life and their impact on the technological world.
The project is a simple implementation of a simple client server chat system where once clients are connected to the server, then they can communicate with each other. In a multi-client chat server, N clients are connected to a server and send messages. In this project, one of the clients sends messages to the server and it will send back the messages to all other clients. The client first needs to connect with the server and can then issue two commands - one will fetch the list of client's that are currently connected to the server and the other will send the message to that particular client number.
Here is an overview of how we can entertain multiple client requests to a server in parallel. We are going to create a TCP/IP server that can receive multiple client requests at the same time and entertain each client request in parallel so that no client will have to wait for server time. The TCP/IP server has been designed with multi-threading for parallel processing and whenever a request comes to the server, the server’s main thread will create a thread and pass the client request to that thread with its ID. The thread will start processing with the client request, generate the report, and send it back to the client.
protocol
Above we have a layout for the model that we will be implementing in this project.
Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP, while other socket reaches out to the other to form a connection. Server forms the listener socket while client reaches out to the server. Socket.io enables real-time event-based communication between one or more clients and a server. It works on every platform, browser or device and is fast and reliable. Socket.io has two parts: a client-side library that runs in the browser, and a server-side library for Node.js. Both components have an identical API.

index
client1
client2
server
The project is yet to be deployed

multi-client-chat-app's People

Contributors

rashi3004 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.