I am creating a website with a system in which users can send messages to each other. I would like that when a user logs in to the system who received the message, he will receive some update on his screen, informing him of this.
These messages do not have to be in real time, so I donβt think I want to press a comet or juggernaut or something like that. Instead, I would be happy to just poll the server every minute or so and listen for updates.
I am new to javascript and I am wondering if there is a way to do this.
source
share