I am currently developing a script for real estate which tries to find a match between your products and your clients needs. So I need to give the user a notification whenever a match is found, I am currently using interval ajax like this
setinterval(function(){
}, 1000)
I have read some posts talking about websockets and that they could be more useful and giving better experience. I do not really know what kind of difference but I see that my code is performing great !