June 2024
Intermediate to advanced
508 pages
10h 53m
English
Now that we have implemented a Socket.IO backend and frontend, let’s spend some time integrating it with the MongoDB database by temporarily storing messages in the database and replaying them when a new user joins, so that users can see the chat history after they join. Additionally, we will refactor our chat app to be ready for future expansions and maintenance. Finally, we will test out the new structure by implementing new commands to join and switch rooms.
In this chapter, we are going to cover the following main topics:
Before we start, ...
Read now
Unlock full access