![]() Private Channel - You need to authorize users before they can join a channelĥ. Enabling Broadcast routes and using routes/channels.php to authenticate usersĤ. Things to note here (so I don’ t have to repeat things):Ģ. (And my favorite part is when they say that you can easily switch to socket.io) “We want to have an unlimited number of connections” We don’t want to worry about limitations.įor this, we will need to read about Event Broadcasting. Check out Īnd most of the tutorials trick you with their title of implementing Websockets when in reality they just want to give you Pusher. Even though Pusher seems like a quick “ Plug and play” solution (which it is), it comes with limitations. Whilst the other wanted to build something cool, reusable and long-lasting. ![]() Part of me wanted to do a quick hack (luckily that’s not the strongest side of mine). I had this challenge where I needed it to show a list of people who are currently viewing a specific URL in Laravel. I will lay down the instructions on how you can use it and will be around to answer your questions if you need to. Now, if you are afraid of the word “ Websockets”, don’t be. They are really helpful if you want to show real-time activities from your users (or perhaps some queue jobs). By Adnan Sabanovic How to use Laravel with Socket.IO Image borrowed from Code Tutorials
0 Comments
Leave a Reply. |