How to create notification system like the one in hashnode ? Is it done using websockets ?
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?