As long as you follow the doc here https://laravel.com/docs/9.x/broadcasting, it should work.
Mar 13, 2022
1
Level 1
Real time notification on system with socket.io
So I have admin system to create thing for user, i wanted to implement real time notification system (Not browser notification ) on my admin panel. Suppose i wanted to inform admin user that whatever product he/she added is approved for selling now without refreshing the page. So for that implemented the socket.io server and it is working fine but the problem is when user navigated to any page of system then new socket.io id generated can we optimize this to one user one socket id, so that it will easy to manage, Can you guys provide the better solution for the same.
Please or to participate in this conversation.