开发者

Live updates in website? (streamerapi)

开发者 https://www.devze.com 2022-12-09 17:14 出处:网络
I was in http://finance.yahoo.开发者_运维问答com/ and checked the europe tab ( markets are open here atm) you ll see trades updating live, I went to firebug to the Net tab and there was no updates...

I was in http://finance.yahoo.开发者_运维问答com/ and checked the europe tab ( markets are open here atm) you ll see trades updating live, I went to firebug to the Net tab and there was no updates... so I wonder how are they doing that? I can see there is a streamerapi.finance.yahoo.com that actually makes fiddler throw an error.

Anyone knows anything else about this live update?

Really interested in this, would really like to know if they are constantly polling , the updates seem to happen at irregular intervals

found some info here Please note my interest is on the seeminly push aspect of it ( ie view is updated when there is new information)

Cheers


It is called Comet.

http://en.wikipedia.org/wiki/Comet_(programming)


It is a comet system using a hidden iframe technique. A step by step description of what is going on with streamerapi as well as a simple debug HTA to consume the feed is available on my site: AJAX Push – Comet.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号