comet

Implementing Comet on the database-side

佐手、 提交于 2019-12-08 02:47:26
问题 This is more out of curiosity and "for future reference" than anything, but how is Comet implemented on the database-side? I know most implementations use long-lived HTTP requests to "wait" until data is available, but how is this done on the server-side? How does the web server know when new data is available? Does it constantly poll the database? 回答1: What DB are you using? If it supports triggers , which many RDBMSs do in some shape or form, then you could have the trigger fire an event

Stop browser throbber spinning for Comet using iframe

天涯浪子 提交于 2019-12-08 02:15:19
问题 When I use comet using iframe push, the browser throbber will keep spinning forever while the data is being pushed through the iframe. Lightstreamer is also using iframe, but how do they manage to make it stop? I found a similar post here but it doesn't seem to solve my problem. Any explanation on how lightstreamer works would greatly appreciately. Thank you. 回答1: I wrote a post about this at http://www.shanison.com/2010/05/10/stop-the-browser-%E2%80%9Cthrobber-of-doom%E2%80%9D-while-loading

Are there any good open-sourced comet web servers for ASP.NET MVC applications?

余生颓废 提交于 2019-12-08 01:06:05
问题 I'm looking for one that can be used to handle many long poll clients and does not create a thread for each request. 回答1: Each call to IIS (ASP.NET) page works on its own thread. A good library should not create some extra threads. So, I'm using PokeIn inside my solution(online learning) and it doesnt create extra threads. It has a free community edition but not an open source :( 回答2: you can check the source code for Pokein here edit It seems that the latest source available isn't that up to

I like to implement Flex to Server comet / long polling for games

一笑奈何 提交于 2019-12-07 17:04:12
问题 I need to try and implement port 80 flex games to server method. I like to ask if someone already did it before or it is possible to manage flash/flex multi user games with long polling / comet server ? 回答1: Of course it is possible. I'd suggest using URLStream (which provides low-level access to downloading data from URL) to receive data on client, since most other methods either do not give you downloaded data continuously (various Loaders) or have problems with proxies (Sockets). Note that

SSE Server Sent Events - Client keep sending requests (like pooling)

大兔子大兔子 提交于 2019-12-07 16:26:56
问题 How come every site explains that in SSE a single connection stays opened between client and server "With SSE, a client sends a standard HTTP request asking for an event stream, and the server responds initially with a standard HTTP response and holds the connection open" And then, when server decides it can send data to the client while what I am trying to implement SSE I see on fiddler requests being sent every couple of seconds For me it feels like long polling and not a one single

Websync: pros and cons?

我的未来我决定 提交于 2019-12-07 11:19:39
问题 What is your experience working with Websync (comet framework)? Have you considered any alternatives before using it? So far I can say that Pros: Very straightforward and easy to use Does not require any server configuration Cons: Expensive (turned out to save us tons of money on bandwidth, so not quite) Lack of documentation (there are still few gotchas with WebSync3, but documentation is very nice and comprehensive) Javascript framework is not flexible enough (turned out to be flexible

SignalR - Forever Frame in IE stops working after a few minutes of being idle

筅森魡賤 提交于 2019-12-07 06:41:43
问题 I am using SignalR in IE9 and, unfortunately, it has to degrade to using the forever frame connection. I have spent some time looking at this with the Developer Tools in IE. I can see the callbacks loading into the dynamically inserted IFrame, and they call the receive function in the SignalR plugin. However after about 20/30 of these it just stops responding - I can no longer call client script from the server. I'm guessing that the IFrame load is finally timing out, but there appear to be

Compatibility of Comet with current technology

这一生的挚爱 提交于 2019-12-07 04:29:55
问题 I hear that I can use Comet as a server push technology along with my Ajax code to increase the performance of my web applications. How mature this Comet technology? Is it supported by all web servers, programming languages and browsers? What are the disadvantages of using Comet? 回答1: It is mature, though I think you should consider it more of a technique than a technology. All web servers support it as far as I know, though you will need to research and configure your particular web server

how to implement redis's pubsub timeout feature?

你离开我真会死。 提交于 2019-12-06 18:54:01
问题 I want to use Redis's pubsub feature to implement comet, but pubsub doesn't have timeout, so if I ps.listen() , it will block, even if client closes browser. greenlet has timeout feature when spawn process. but I don't know how to combine them together. flask's pseudo @app.route('/') def comet(): rc = redis.Redis() ps = rc.pubsub() ps.subscribe('foo') for item in ps.listen(): if item['type'] == 'message': return item['data'] # ps.listen() will block, so how to make it timeout after 30 s? 回答1:

AJAX Server Push

耗尽温柔 提交于 2019-12-06 16:44:10
Well, I have doubts about this technology, more precisely in its implementation, can not find good examples on the Internet, as it involves javascript and php, only, you would have some links where I can find this stuff really works and that ? leggetter A great source for all things Comet is Comet Daily . Unfortunately it's not updated all that often any more but there are some fantastic old articles in there. It's contributed to by guys that have been developing Comet solutions for over 10 years. Comet seems to get incorrectly bundled as meaning just one particular connection mechanism is