I spend a week teaching what are Websockets
and how to use them. What is the logic and architecture of all this. I want to create a simple Laravel application with live-chat or live-notifications.
So, at the moment I found tens of ways and nothing concrete from A to Z. Using Redis
, NodeJS
, socket.io
and Laravel
. Using Ratchet
library, using 3-rd party services like Pusher.com
.
Someone suggested me that Laravel
, Laravel echo
and socket.io
and nothing more.
I really get in stuck. From my understanding, anyway for achieving it all, we need 2 Servers, one back-end(Laravel
), one for WebSockets
, and client-side for emit
and listen
for events.
What is the easiest technologies for achieve it w/o 3-rd party priced services, and why?
From one tutorial, I found an idea of creating a server at NodeJS
and socket.io
for server&client. And create a easy live-chat. But have no Idea how to connect it all now with Laravel, and if it's the right way.
Can please someone explain all that logic and give a good advice and explanation of all that process?
P.S. I read broadcasting Laravel documentation and tons of tutorials and youtube-lessons. I can't find a way of binding all that architecture together. Thanks.