Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramji023/realtimechat_application
https://github.com/ramji023/realtimechat_application
css html javascript nodejs socket-io
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ramji023/realtimechat_application
- Owner: ramji023
- Created: 2023-09-08T07:26:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-07T10:40:07.000Z (over 1 year ago)
- Last Synced: 2024-12-08T05:24:35.800Z (2 months ago)
- Topics: css, html, javascript, nodejs, socket-io
- Language: JavaScript
- Homepage:
- Size: 1.26 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RealTimeChat_application
/* In this real-time chat app we create both a client file and a server file.
Multiple clients can connect to the server, and when a client joins the chat,
it emits an event with (socket.emit) Then server handles this event with (socket.io) and broadcasts it with (socket.broadcast.emit) to all the clients.
Similarly, when any client emits an event to the server, the server handles it and broadcasts it to all clients.
And when server emit an event to a client then he handle the event.Here is the visual presentation how it works : =>
step 1 ==>
suppose a client name Ramji :-> send a message using socket.emit to server
step 2 ==>
server :-> then server receive message from Ramji using socket.io and now
step 3 ==>
server :-> server broadcast the message to all multiple clients using socket.broadcast.emit
step 4 ==>
multiple clients :->now when any clients send any message using socket.emit then
step 5 ==>
server:-> then server emit this message and broadcast to RAmji and all other clients*/