comet

Is Comet easier in ASP.NET with Asynchronous Pages?

血红的双手。 提交于 2019-12-12 11:06:58
问题 I don't mean to ask, is Comet easier in ASPNET than in Jetty? I mean, is Comet easier inn either ASPNET or Jetty, as compared to other alternatives? I think the asynch capabilities of ASP.NET and Jetty specifically make Comet more scalable when implemented on those platforms and I'd like to confirm that. ASPNET introduced "Asynchronous pages" back in 2005. The idea was to apply the familiar .NET asynch model to ASP.NET page processing. public partial class AsyncPage : System.Web.UI.Page {

AsyncContext and I/O error handling (when peer disconnects)

人盡茶涼 提交于 2019-12-12 07:19:15
问题 I'm implementing Server-Sent Events using Servlet 3.0's javax.servlet.AsyncContext interface. However I can't understand how I should handle I/O errors like peer disconnect. For a given AsyncContext ac = request.startAsync() , I can call ac.getResponse().getWriter().print(something) and then ac.getResponse.getWriter().flush() and it works fine. However when a client disconnects, I don't get an error - even if I attach a listener, its onError method is not called. I tested it with both Jetty 8

ASP.net how to long polling with PokeIn?

拥有回忆 提交于 2019-12-12 05:27:36
问题 I want to make a service that notify the user in case there are some new messages sent to him. Thus I want to use some Comet framework that provide the server push ability. So I have looked into PokeIn. Just wondering a thing. I have checked on the samples that they have on the website. None of them look into the database to retrieve new entries if there are some. But it is just a matter of modification to it I guess. One of the sample implement this long polling by using a sleep on the

django and comet

本小妞迷上赌 提交于 2019-12-11 15:08:58
问题 What should i use to implement comet on django? All things i've found on google seems outdated. Some people point to orbited.org or hookbox.org , but both of them are just dead now. How people solve this problem nowadays? 回答1: I would check out Pusher which is a third party service that will allow you to push events to your browser with a drop-dead simple API. They have a free sandbox plan that comes with 100k messages per day and 20 connections. Alternatively, you could run APE on your

implement comet with php driven website

时光总嘲笑我的痴心妄想 提交于 2019-12-11 13:41:45
问题 I wanted to know if somebody could explain in somewhat simple terms how I could get started with comet. I am on a shared host environment. What exactly are my possibillity's? From what I have read here sofar, is that php is not the best option., because it is run as a one process per request instead off thread. On another, they talk about sockets. I have also read about facebook and that they run there own comet server written in erlang, but they still have a php website. So how exactly does

SQLDependency solution for Azure table?

可紊 提交于 2019-12-11 09:20:14
问题 I want to use Azure table to store data which is posted by users. And whenever a user post something to some other user it should give out a notification to this user. I have looked into Comet solution with PokeIn to see if there are a way for it. As I'm new to this technique I would like to know the approach before writing the code. My though to tackle this problem so far is that you can make reverse ajax call to the server. And then at the server it will continuously check the database,

Real-time two side push communication via GPRS?

故事扮演 提交于 2019-12-11 08:26:37
问题 Here is a use-case from the document which describes Volvo Buses' IT system: While driving a bus a driver continuously gets real-time information about the route, next stops and information about how he is doing according to the time-table. The vehicle’s deviation from the timetable, displayed in real-time, both in real figures and as a easily interpreted graphical “meter”. The information is constantly updated. All that information is sent to the on-board computer from the Central System via

IE7/8 responseText in readyState 3 not available

吃可爱长大的小学妹 提交于 2019-12-11 05:08:41
问题 I've written an application with tornado to support real time updates on my website through HTTP streaming. It works in all browsers except IE7 and IE8. Here is the code that handles the HTTP streaming: ... code to create xhr object xhr.open('GET', 'http://192.168.0.173:8888', true); xhr.onreadystatechange = function() { if(xhr.readyState == 3 && xhr.status==200) { try { alert(xhr.responseText); } catch(e) { alert("noo"); } } } setTimeout("xhr.send(null);", 1000); The problem is that xhr

node.js - push data to client - only one client can be connected?

不问归期 提交于 2019-12-11 03:22:42
问题 I am trying to create a server-side solution which periodically pushes data to the client (no client-side polling) via node.js. The connection should be open permanently and whenever the server has new data, it pushes it down to the client. Here is my simple sample script: var sys = require('sys'), http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); sys.puts('Start sending...'); setInterval(function(){ res.write("<script type=

IE8 stops network access after 5 long polling request

社会主义新天地 提交于 2019-12-11 00:44:42
问题 I am using Long Polling as a push mechanism in my system. It is working fine in Firefox & Chrome, but in IE8 the behaviour is quite strange: It loads OK for 5 times (i.e. I am able to refresh(F5) the page 5 times, the html is loaded and all scripts are running correctly) after which, IE8 refuses to perform and network connection (I've checked with Fiddler2) and simply shows the "loading" icon infinitely. The only cure at this stage, is to close and open the browser itself. I am using JQuery