I am developing a website in PHP. Now I would just like to add a notification system. Imagine being like a friendship with Facebook: when I get a friend’s request, I get a notification too.
Of course, I know a bit of Node.JS and Socket.IO, but the complex part seems to be the implementation with PHP.
What do I mean for now:
1. user sends friend request 2. in my PHP code, I cURL my Node.JS service: "/notification?friendid=9634963478" 3. user with id 9634963478 should get a notification
I ran into a problem:
How do I log in with the same credentials on Node.js? So, in principle, none of the users, except me, can receive messages?
I'm not looking for code, but rather "enlightenment" from some guru.
source share