comet

Comet-style messaging: How to implement server part without polling?

I'm planning a chat-like web application, where whenever one user posts something, all other users (that is, people with their browser pointing to that site) would get instant updates. The common choice for this is comet-style messaging using long-polling AJAX requests. Writing the client-side part with jQuery isn't much of a problem. ...

Use Atmosphere or Cometd

What are the differences between these two Java comet libraries? Is there a reason to pick one over the other? ...

ASP.NET - Comet Pushing messages from server to all clients

Hi All, I'm making an application with server sided variables that change every second. Every second those new variable need to be shown at all the clients that have the webpage open. Now most people told me to go with comet because I need to push/pull the data every second, now I've got a few questions: What would be a better soluti...

Orbited proxy not closing proxied connection

I'm having trouble getting orbited to kill the connection it's proxying. I'm using it to run IRC through a web browser. When the user disconnects, I would expect the IRC server to show the "remote host closed the connection" message, but instead I get ping timeout. So the code in proxy.py (in connectionLost) isn't killing the connecti...

Problem with long polling with JQuery on Tomcat Server

I created a CometServlet according to this example http://tomcat.apache.org/tomcat-7.0-doc/aio.html. Then I tried to get data from it using JQuery. The code is following: $(function() { $.longPoll = function(url, success, error) { $.ajax({ url : url, success: function(data, status) { ...

How can I retrieve updated records in real-time? (push notifications?)

Hello, I'm trying to create a ruby on rails ecommerce application, where potential customers will be able to place an order and the store owner will be able to receive the order in real-time. The finalized order will be recorded into the database (at the moment SQLite), and the storeowner will have a browser window open, where the new or...

Missing comet events on Tomcat 7 CometProcessor

I am using CometProcessor to implement long-polling on Tomcat 7.0. The thing that bothering me is I don't get any other events except CometEvent.EventType.BEGIN. The code sample: @Override public void event(CometEvent event) throws IOException, ServletException { HttpServletRequest request = event.getHttpServletRequest(); ...

Erlang, membase and comet

Hello everyone, I was wondering if someone had already use this three technologies together. I know Erlang and Comet are widely used, buy I can't find anything related of Comet + Membase or Erlang + Membase. Are them together a bad idea for some reason? I'm doing a research using Freemind to map the ideas about these three technologie...

Why do Jquery Ajax/Comet page requests return empty responses while I can access them directly ?

Hi. I'm trying to write an application using ajax, with Nginx as frontend, proxying relevant requests to a little application I wrote. All it does is to epoll some sockets and use the file descriptors. Here are some code snippets : Nginx configuration : upstream cometutils { server unix:/tmp/cutil_socket; } ... location /test { pr...

How can multiple clients be notified of a single users actions? Web based channels...

Lets say we have a web based application where users login to their own channel. And our server manages and maintains a list of users, and their current ip addresses. When someone logs in, is it possible for each client to receive a notification of this users login? Equally if someone logs out, a similar notification would be generated....

How to make a Constantly updating Page?

Hi There, I'm trying to create a page on my website that shows newly uploaded items in real-time. I was thinking that calling an Ajax Script every 3 seconds would be the best way to approach this, however my website does not get a new uploaded item that often. It is so variable too, anywhere between 30 seconds and 1 hour! In addition,...

Why use http(s)+comet and not simply socket programming?

Why use http(s)+comet and not simply socket programming+maybe use the same port 80 or 443 if firewall/blockage is an issue? Wait, perhaps because browsers don't have javascript sockets API? If I am building an independent application and not a web-app, does comet have any advantage over socket programming? ...

MySQL trigger + notify a long-polling Apache/PHP connection

I know there are Comet server technologies that do this but I want to write something simple and home-grown. When a record is inserted into a MySQL table, I want it to somehow communicate this data to a series of long-polled Apache connections using PHP (or whatever). So multiple people are "listening" through their browser and the sec...

Is it safe to assume constant IP address with a COMET server implementation?

Our website uses an in-house implemented long-polling COMET server to communicate with the web-page on the client machine. A Connection object manages the requests and responses for a single client. The Connection object can live for many hours and deal with several hundred requests from the same client, while they remain "connected" to ...

C# HttpWebResponse Comet problem

Hello! I am wondering how I would go about reading a persistent connection with HttpWebRequest and HttpWebResponse. The problem seems to be that the GetResponseStream() function waits for the server connection to be closed before returning. Is there an alternative easy way to read a comet connection? Example that doesn't work. // get ...

jsonp comet hanging request causes ugly "loading" status on browsers

I'm using jsonp to do cross-domain comet requests, and the "loading" status is really annoying. Is there any way to suppress this with javascript? For those who are unfamiliar with jsonp, it basically injects a script tag, except in my case, I'm hanging the request on my server without returning the request until a later time. During ...

What server side solution did Google Wave used?

I wonder what server side solution Google used for Google Wave. I have heard that they used Node.js for this. Is that true? Or did they use other non-open source solutions? ...

AMQP/RabbitMQ or Node.js for live web applications?

I want to build a live application that supports server-push (chat, feeds, live notification and collaboration etc). I have looked into Node.js and found it quite interesting and appropriate for such things. I have also looked into AMQP/RabbitMQ, but I don't get these quite. My questions: How does AMQP/RabbitMQ compare to Node.js? C...

Scala or Python to Build a Comet server to support a PHP application?

Hi, I have a currently running PHP application that I want to add real-time feed (Google search latest result feeds), I have an implementation in PHP that does the following: An AJAX request to the server. The PHP responds. After 15000ms (15 seconds) using setTimeout(), we repeat the steps. I knew this have very much overhead on the...

How to stress test comet server?

I would like to test how many connections it can support. I am using orbited, specifically the streaming, not long polling. ...