#notifications per group (broadcast and database)

3 messages · Page 1 of 1 (latest)

wind stone
#

hello, i asked few days ago about websockets notifications, i have a new question.
I have notifications per group, not per user.

On page load im getting readed and unreaded notifications from api, and i have channel to receive new websockets notifications in real time. The problem is when two users from the same group are online and one of them will mark notification as read, the second will still see notification as unreaded, how to sync it properly? open new websocket channel and receive id after notificaion change status and can work with it? for example channel notificationsUpdates - with receiving notification id and status

#

notifications per group (broadcast and database)

wind stone
#

for this moment i think my solution is good