I know there are ways to fake it, polling (or long polling) but is there any way to have the server contact the browser to push out information?
Either polling option wastes resources on the server and depending on the server can lock it up (apache and iis for example).
Seems like a lot of sites are using long polling to fake a server-side push mechanism over http. Wouldn't it just be better to have a true push protocol built into a browser?
What options are there that are server friendly to push (fake or otherwise) information to web browsers?
I know there are ways to fake it, polling (or long polling) but is there any way to have the server contact the browser to push out information?
The connection must be first established by the client to the server. There's no way of a server contacting a web client.
Either polling option wastes resources on the server and depending on the server can lock it up (apache and iis for example).
That's correct. Frequent polling is inefficient which is one of the reasons we are moving to a push world with persistent connections. WebSockets will be the best solution for this. I work for Pusher, a hosted realtime WebSocket solution, and we've seen a massive uptake in this technology driven by a community that believe it's the best solution to the resource and realtime communication problem.
Seems like a lot of sites are using long polling to fake a server-side push mechanism over http. Wouldn't it just be better to have a true push protocol built into a browser?
Yes, that's why we now have WebSockets. HTTP solutions to web browsers are ultimately a hack and don't work consistently (in the same way) between browsers.
What options are there that are server friendly to push (fake or otherwise) information to web browsers?
Related information and resources: