Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

uffarooque73's avatar

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.

0 likes
1 reply

Please or to participate in this conversation.