This is a project that allows people to open private chatrooms and talk to their friends. When everyone leaves the chatroom, it disappears.
- Run "index.js" by using
node index.js
- Open two instances via localhost:3000 in web browser
- Style message feed to include usernames and separate recieved from sent messages
- Add functionality for multiple rooms
At the moment, this project uses Socket.io for messaging and Node.js on the backend.
- Encrypted communication
- Some form of identity validation (socialist billionaire?)
- Client requests to set up a new chatroom
- Server opens a room, sends room_ID to client
- Client receives room_ID, joins room, is assigned a username, and waits for others to join
- Client sends room_ID to server, along with join request
- Server adds client to room, assigns client a username, routes messages to client
- Client receives most recent messages (last 50 messages)
- Client can begin chatting with other members of the room
- Client sends message to server
- Server adds message to temporary store, sends to clients
- Clients receive messages
- Client recieves message from server
- Client stores message in mesaageDB, logs time of receipt
- Client renders messages from messageDB in chronological order