Skip to content

nucle0tides/chatroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Readme for Chatroom 1. 
A user can post messages and see messagess by using my chatroom. 

The user is directed to the index.html where one seees a button to create a chatroom. 
When the user clicks the button, the one is directed to a speicifc room html. 
The user needs to enter a nickname on the prompt before one acutally enters messages. 
The data that user puts in is saved in the actual database, and asynchornously, the previosu messages are being queried and posted on the website. 

For the future, I expect to have a better gui, and want to have a log-in functionality. 

Any special things: 
My chatroom is being updated every 5 seconds, yet I do not post all the messages over and over again since it is expensive. 
What I am doing here is I am only adding the last entry to the html. 
So the user can still see the messages but it seems like the newly message is being seen. 

The drawback is my chatroom message is being slowly updated. 

#README for Chatroom 2. 
This time I modified my original chatroom to be run in real time. 
By using socket.io, I made the communication between the sever and the client in real time. 
This choice solved the lacency issue with the original chatroom. 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published