B
B
BonBon Slick2018-03-04 13:58:40
Redis
BonBon Slick, 2018-03-04 13:58:40

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

1 answer(s)
D
Dmitry Ilnitsky, 2018-05-29
@DaleMartinWatson

Have you looked at Laravel Echo and Echo Server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question