I'm making a project with javascript library named SocketIO and I also have a web, with file index.html
So, what I want to do is receive a notification via socket.io client, and every time that I receive a notification refresh the web page.
What I've done until now is receive a notification, nothing else than that.
Here is how I receive a "fire" notification:
// listen and receive fire notification
function fire(socket) {
socket.on('fire', () => {
console.log('Fire notification received')
})
}
What I want to do is: at the time I receive a notification, refresh the web page (in html).
How can I do it?
Thank you!!!!!