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.
...
What are the differences between these two Java comet libraries? Is there a reason to pick one over the other?
...
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...
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...
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) {
...
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...
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();
...
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...
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...
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....
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+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?
...
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...
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 ...
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 ...
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 ...
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?
...
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...
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...
I would like to test how many connections it can support.
I am using orbited, specifically the streaming, not long polling.
...