comet

What specific use cases call for BOSH over WebSockets and long-polling? [closed]

折月煮酒 提交于 2019-11-26 10:10:41
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . BOSH is... a transport protocol that emulates the semantics of a long-lived, bidirectional TCP connection between two entities (such

HTTP-Push (Comet/Reverse Ajax)using Silverlight to Javascript bridge?

会有一股神秘感。 提交于 2019-11-26 10:03:06
问题 Is it a good idea to use PollingDuplexHttpBinding with Silverlight in conjunction with the function RegisterScriptableObject to achieve Comet-style javascript functionality? (see tutorial) I have never seen this approach discussed in the forums, or recommended as a free solution. Instead only heard about paid options such as WebSync and PokeIn. Does Silverlight implement the the Bayeux protocol? Should it? 回答1: You'll have some serious scalability problems, and it's a royal pain to implement.

How do modern implementations of Comet/Reverse AJAX work? Any stable C# WCF or ASP.NET implementations?

≡放荡痞女 提交于 2019-11-26 09:55:11
问题 What is the correct way (or best) way to implement Comet, HTTP Push, or Reverse AJAX? What .NET implementations would you recommend? 回答1: I have hear about, WebSync and PokeIn, both are paid implementations, I have used PokeIn and its pretty straight forward. If you are looking forward to code your own COMET implementation, I just can say that its a complex task, because you need to modify the natural behaviour if IIS. Its a hacky way to get around the limitations of the HTTP protocol and you

Long Polling/HTTP Streaming General Questions

守給你的承諾、 提交于 2019-11-26 09:29:01
问题 I\'m trying to make a theoretical web chat application with php and jquery, I\'ve read about long polling and http streaming, and I managed to apply most principles introduced in the articles. However, there are 2 main things I still can\'t get my head around. With Long Polling How will the server know when an update have been sent? will it need to query the databse continually or is there a better way? With HTTP Streaming How do I check for the results during the Ajax connection is still

Stop the browser “throbber of doom” while loading comet/server push iframe

陌路散爱 提交于 2019-11-26 07:26:46
问题 When using Comet, or Ajax Long Pull techniques - an iframe is usually used. And while that iframe is waiting for the long connection to close, the browser is spinning its throbber (the progress/loading indicator). Some websites, for example etherpad.com, managed to make it stop. How do they do it? 回答1: After digging for a day and a night in the guts of the internets, here is what I came up with: server-sent events - Very cool, currently works only in Opera, but may be part of HTML5 and other

Short-polling vs Long-polling for real time web applications?

試著忘記壹切 提交于 2019-11-26 07:23:06
问题 I\'m building a real-time web application As far as I know, the most popular choices are short-polling and long-polling. What are the advantages and disadvantages might there be for measuring one over the other? 回答1: Short polling (a.k.a. AJAX based timer): Pros: simpler, not server consuming (if the time between requests is long). Cons: bad if you need to be notified WHEN the server event happens with no delay. Example (ItsNat based) Long polling (a.k.a. Comet based on XHR) Pros: you are

How does facebook, gmail send the real time notification?

依然范特西╮ 提交于 2019-11-26 01:25:16
问题 I have read some posts about this topic and the answers are comet, reverse ajax, http streaming, server push, etc. How does incoming mail notification on Gmail works? How is GMail Chat able to make AJAX requests without client interaction? I would like to know if there are any code references that I can follow to write a very simple example. Many posts or websites just talk about the technology. It is hard to find a complete sample code. Also, it seems many methods can be used to implement

Comet implementation for ASP.NET? [closed]

给你一囗甜甜゛ 提交于 2019-11-26 00:35:34
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I\'ve been looking at ways to implement gmail-like messaging inside a browser, and arrived at the Comet concept. However, I haven\'t been able to find a good .NET implementation that allows me to do this within IIS (our application is written in ASP.NET 2.0). The solutions I found (or could think of, for that

Is there some way to PUSH data from web server to browser?

断了今生、忘了曾经 提交于 2019-11-26 00:32:30
问题 Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load. Is there any better method (even using Ajax) other than polling the server frequently? 回答1: Yes, what you're looking for is COMET http://en.wikipedia.org/wiki/Comet_(programming). Other good Google terms to search for are AJAX-push and reverse-ajax. 回答2: Yes, it's called Reverse Ajax or Comet . Comet is basically an

Comet and jQuery [closed]

匆匆过客 提交于 2019-11-25 23:48:17
问题 I\'ve done some research into server push with javascript and have found the general consensus to be that what I\'m looking for lies in the \"Comet\" design pattern. Are there any good implementations of this pattern built on top of jQuery? If not, are there any good implementations of this pattern at all? And regardless of the answer to those questions, is there any documentation on this pattern from an implementation stand-point? 回答1: I wrote the plugin mentioned by Till. The plugin is an