Push notification with nodejs
I am working on a new project in which we have tiny social networking feature, where each user has an ability to post/share quotes, and more over facility of like and comment.
so, i want to build a (user specific )realtime Push Notification module with nodejs.
You can use socket to do so. What you can do is create a Userlist array on server who are online in the system. The userList will contain user information along with the socket id.
When a particular event occurs you know to whom to send that Notification, and then check if all those users are available in the userList. If a user is available in the userList, use socket to emit the notification to that users.