3 years ago

Broadcasting without Redis & Echo

Posted 3 years ago by cservices

Let me explain what I am trying to do:

I built a dashboard for our Marketing dept. A very simple display of a few of marketing’s happenings. One section is a message board. It is not interactive. It only displays messages entered into the admin, and people can click to read them.

In attempting to learn Broadcasting, I thought it would be nice to update the div containing the messages by prepending new messages to the list, and possibly create an alert of some sort for items updated. All for people who have the dashboard opened if an admin adds/updates a message.

In my looking into socket.io, it appears to me that I don't need the overhead of Redis, and I want to use JQuery, rather than Echo, if at all possible.

The question is, how?

I have played with Events, and I get how they work, but I don't understand anything beyond that when it comes to sending to a socket and so on. I could really use some guidance. The documentation and tutorials I find all use Echo and Redis or Vue and such. But what about if you are not using any of those.

Thanks in advance for your help. Cy

PS: I have zero experience with socket.io. Have been watching some videos that make it look simple, but nothing in the way I want to use it.

Please sign in or create an account to participate in this conversation.