C
C
chelkaz2017-03-09 12:18:46
Socket.io
chelkaz, 2017-03-09 12:18:46

What do you need to alert RealTime users?

I read https://laravel.com/docs/5.4/broadcasting And I don’t understand, I need to change the html block for the user, by event (If new content comes to the database)
+ There are a lot of groups (sections) on the site and I need to let the user subscribe to event, if there is new information in the group, notify the user by browser, even if the site is closed.
What is needed for this if you use the websocket.io driver :
Laravel + websocket.io ?
Laravel + node js + websocket.io
Is laravel-echo-server needed? You can’t find normal documentation, since every half a year everything changes and for 2017 I didn’t find anything. If I use the Redis
driver , are there manuals with it for my task?
All the examples that I found are for older versions of Laravel, and after studying, I realized that they do not fit under 5.4.
What should I choose for my task, given that users from 50,000 and most need to be notified several times a day.
Addition:
----------------------
One friend from the toaster https://toster.ru/user/MarcusAurelius says:


Socket.io is not needed for anything. Check out this websocket example: https://github.com/HowProgrammingWorks/WebsocketChat

How to be in 2017? All the examples that I found in 2015-2016...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
C
chelkaz, 2017-06-26
@chelkaz

Ideal without third-party services - https://opensource.mail.ru/Centrifugo

C
cha-cha, 2017-03-09
@cha-cha

I did this:
Laravel > Redis > Node > socket.io
Laravel writes to the radish, the node grabs the message from the radish and sends it to the clients.
Example .

D
davidnum95, 2017-03-09
@davidnum95

As an option, write a service on nodejs + socket.io that will send notifications.

A
ajaxtelamonid, 2017-03-16
@ajaxtelamonid

https://onesignal.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question