What is the optimal web socket organization for chat app?
I’m working on chat application with group chats and implementing web sockets now (Laravel 11 and Reverb).
Every chat group item in my app contains last message and individual for each user (group member) number of unread messages (like in telegram).
When user add message to chat I want to send a web socket to all members of this chat.