comet

How does a WCF server inform a WCF client about changes? (Better solution then simple polling, e.g. Comet or long polling)

為{幸葍}努か 提交于 2019-11-27 04:10:53
问题 see also "WCF push to client through firewall" I need to have a WCF client that connect to a WCF server, then when some of the data changes on the server the clients need to update its display. As there is likely to be a firewall between the clients and the server. All communications must be over HTTP The server can not make an (physical) outgoing call to the client. As I am writing both the client and the server I do not need to limit the solution to only using soap etc. I am looking for

C#/ASP Based Reverse AJAX

混江龙づ霸主 提交于 2019-11-27 03:39:23
问题 I have a current project running using APE that needs to work on C#/.NET... I was wondering if anyone had any suggestions for either a method of approaching Reverse AJAX/Comet on C#/.NET or any packages such as APE that are available. EDIT For clarification, APE doesn't work on Windows. Which is a restriction I have with the project. 回答1: I think that you asking for something like http://www.frozenmountain.com/websync/ or http://www.aaronlerch.com/blog/2007/07/08/creating-comet-applications

COMET (server push to client) on iPhone [closed]

旧巷老猫 提交于 2019-11-27 03:35:56
I'm looking to establish some kind of socket/COMET type functionality from my server(s) to my iPhone application. Essentially, anytime a user manages to set an arbitrary object 'dirty' on the server, by say, updating their Address.. the feedback should be pushed from the server to any clients keeping a live poll to the server. The buzzword for this is COMET I suppose. I know there is DWR out there for web browser applications, so I'm thinking, maybe it's best to set a hidden UIWebView in each of my controllers just so I can get out of the box COMET from their javascript framework? Is there a

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

泄露秘密 提交于 2019-11-27 02:38:25
BOSH is... a transport protocol that emulates the semantics of a long-lived, bidirectional TCP connection between two entities (such as a client and a server) by efficiently using multiple synchronous HTTP request/response pairs without requiring the use of frequent polling or chunked responses. This sounds like WebSockets and HTTP long-polling except that it uses two open HTTP connections instead of one and doesn't extend the HTTP protocol. What are the differences between the two protocols, and what use case would prefer WebSockets over BOSH? First let me address WebSockets readiness :

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

浪尽此生 提交于 2019-11-27 02:16:35
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? You'll have some serious scalability problems, and it's a royal pain to implement. See: http://devgripes.wordpress.com/2009/11/14/pollingduplexhttpbinding-absolute-rubbish/ If you want a

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

倖福魔咒の 提交于 2019-11-27 02:06:29
What is the correct way (or best) way to implement Comet, HTTP Push, or Reverse AJAX? What .NET implementations would you recommend? 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 need to know really well what you doing so don't end up breaking things around =). It's also known as long

Writing a chat application [closed]

孤人 提交于 2019-11-27 01:59:23
问题 I'm wondering what's the right way to code a chat application for thousands of users. I'm just confused how will I be able to ping the server using AJAX every second or maybe less and check if there are new records in MySQL, etc with an acceptable amount of server(s) load. I'm currently thinking about coding this using jQuery, PHP and MySQL. Please advice. Your help would be greatly appreciated. 回答1: Client Side For any program that needs to poll the server I would recommend WebSockets. I

Comet VS Ajax polling

被刻印的时光 ゝ 提交于 2019-11-27 01:46:55
问题 I need to create a chat like facebook chat. With Comet I need more memory to keep the connection. With Ajax polling there is a latency problem if I send request every 3-4 seconds. So... If the latency ( 3-4 seconds ) doesn't matter, Is Ajax Polling better for my case ? 回答1: Latency is not the only problem. COMET (long-polling) "saves" your traffic - when you use polling, you cannot know, if there were changes on the server, so some of the calls may be just a waste of traffic and resources (e

Is Comet obsolete now with Server-Sent Events and WebSocket? [closed]

ぃ、小莉子 提交于 2019-11-27 01:08:10
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . or do Server-Sent Events and WebSocket replace Comet techniques? 回答1: Comet is a set of technology principles/communication patterns that are typically implemented using HTTP long-poll. It enables a server to send data to the browser on demand (i.e. server push). Current comet

Long Polling/HTTP Streaming General Questions

允我心安 提交于 2019-11-27 00:47:18
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 active? I'm aware of jQuery's success function for ajax calls, but how do I check the data while the