Open Malinovka opened 1 month ago
There's two we can use for the rich text editor
A relational database can store chat messages in a table with columns for the message ID, sender ID, recipient ID, timestamp, and message content
https://www.geeksforgeeks.org/what-is-web-socket-and-how-it-is-different-from-the-http/ WebSocket is bidirectional, a full-duplex protocol that is used in the same scenario of client-server communication. It is a stateful protocol, which means the connection between client and server will stay alive until it gets terminated by either party (client or server). After closing the connection by either of the client or server, the connection is terminated from both ends.
Fun fact: in Agile, tickets like these are called spikes. ⭐ If requirements are fuzzy, we define them before doing the work.
Making a chat box with text editor from scratch is too much work, so let's find a solution that already exists. We need a few things to make a chat box possible.