Skip to content
Advertisement

Tag: socket.io

Php Show Online Users with Pusher or socket.io

I have a forum page. On the only index page, I show an online user list that shows usernames. I use Pusher. It works great. I have a problem about which my customer is complaining. The problem is that when a user browses to other pages, his/her username disappears and re-appears again. His/her connection to Pusher is lost on every

Laravel Echo Listener not working on frontend

I have created an event: Here is the bootstrap.js: and the route: laravel-echo-server.json : ENV file: When I set the broadcast driver to log: When I set the broadcast driver to redis & monitor redis via CLI: It looks like everything works fine, but the browser console in frontend doesn’t show any logs. What’s the problem? Why can’t I get

Laravel Broadcast authentication

How do I authenticate an user to a channel with a custom auth method? For example, in my app I use a token auth (stored in the db for each user) for my API, passed via header and read by a custom middleware. How do I control the access with these custom auth methods for channels? How would be the

Advertisement