A simple chat application that runs in the browser.
- Language: JavaScript ES6
- Environment
- Server: Node.js
- Client: Browser
- Server frameworks: Express, Socket.io
Desktop (modern browsers)
Tested in Google Chrome.
Before being able to access the messaging channel, the user will need to set their username. This will make it so everyone in the channel will be able to see who wrote what messages.
Note: Inappropriate usernames will be partially sanitized by the server.
After entering a username, the user can decide to join the messaging channel.
Once the user has joined the channel, they will be able to see all messages sent in it, who sent them, and the time at which they were sent.
If a user joins in the middle of a conversation, they will only see the messages that were sent from the moment they joined.
Once the user has joined the channel, they will be able to see the names of all users that are currently in it, whether they have previously sent messages or not.
Once the user has joined the channel, they will be able to broadcast a message to everyone else who is in it.
Note: Inappropriate messages will be partially sanitized by the server.
A user can decide to leave the channel to either:
- Stop using the application
- Join it again
However, if the user leaves and decides to join the channel again, they will not be able to see the messages that were sent before they joined again.
Note:
- Enter username*
- Join the messaging channel*
- View messages and users
- (Optional) Write and send a message*
- (Optional) Leave the channel*
* : User interaction is required.