In what situations would AJAX long/short polling be preferred over HTML5 WebSockets?

I am building a small chat application for friends, but unsure about how to get information in a timely manner that is not as manual or as rudimentary as forcing a page refresh. Currently, I am implementing this using simple AJAX, but this has the disadvantage of regularly hitting the server when a short timer … Read more