Answer the question
In order to leave comments, you need to log in
Push notifications via sockets, how to implement it correctly?
How to send push notifications to a specific group of users from Laravel, via predis and node.js on sockets?
That is, I want to send push notifications only to Users with the customer role. Or only to the user with a specific email, etc.
I don’t quite understand, it’s necessary to store each socket somewhere when connecting, take data for it, user role, etc.
When disconnected, each time look for a socket, delete from this storage. The database is unlikely to fit, too much load.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question