Malinovka / StudyGroups

0 stars 0 forks source link

Research how to create a Chatbox component #8

Open Malinovka opened 1 month ago

Malinovka commented 1 month ago

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.

drizzle846 commented 3 weeks ago

There's two we can use for the rich text editor

drizzle846 commented 3 weeks ago

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://quickblox.com/blog/beginners-guide-to-chat-app-architecture/#II.%20Understanding%20the%20basic%20structure%20of%20a%20Chat%20Application

enora-sun commented 3 weeks ago

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.