My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to create notification system like the one in hashnode ? Is it done using websockets ?

Aniketh Saha's photo
Aniketh Saha
·Jun 26, 2018

I am creating a pretty much same webapp like hashnode where I want a notification system . I am able to change the color of the bell or notifcation icon using websockets but thinking is it right? I am using reactjs in frontend so i am not sure it will be done via socket. My flow is when a like gets clicked it goes to the api and socket emit the event with like dara from db . Now if the auth user is belonging to the recieving end which is in the like data the it will get notified to that user! Is the flow right?