DEV Community

YohannesTz
YohannesTz

Posted on

1

Realtime notfication system...

Hi i have been wondering if there is a way to make fully functional realtime notification and chat system like firebase in nodejs socketio?

I know it is possible to make chat system but i don't know and never tried notfication system.

Top comments (4)

Collapse
 
kartikbhargava profile image
Kartik Bhargava

You can use FCM and subscribe user to a topic or use tokens .
Fcm also works in background

Collapse
 
yohannestz profile image
YohannesTz

Sorry can u elaborate?

Collapse
 
kartikbhargava profile image
Kartik Bhargava

Firebase Cloud Messaging is good for this. You need to generate a token for every user and use that token to subscribe users to a particular topic (You can read about this in FCM Docs), and then u just need to make a call to fcm server and send a request body with your payload and fcm service handles it . It is quite effeicient.

Thread Thread
 
yohannestz profile image
YohannesTz

Okay but the problem is i don't want to use firebase

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay