Hello everyone, I’m in need of guidance. I need to create a bar of icons like the facebook example, in this bar we will have the notification icons with their values internally. My question is how to make the values from within the icons update automatically the same as the facebook bar. I created a message icon, and the amount of messages comes from an http: // localhost: 4000 / person / message endpoint. How do I get the amount of messages updated in real time?
Researching me said that I should use Socket.io, but how to implement this in this situation?
I can get the amount of messages through get method using subscribe. But I do not know how to make it update in real time, equal to the values inside the red balloons of the figure.