Questions tagged [cometd]

CometD is a scalable HTTP-based event routing bus that uses a Ajax Push technology pattern known as Comet. The term 'Comet' was coined by Alex Russell in his post Comet: Low Latency Data for the Browser.

CometD is a scalable HTTP-based event routing bus that uses a Ajax Push technology pattern known as Comet. The term 'Comet' was coined by Alex Russell in his post Comet: Low Latency Data for the Browser.

CometD is a Dojo Foundation project to provide implementations of the Bayeux protocol in javascript, java, perl, python and other languages. Other organizations (eg. Sun, IBM and BEA) also have implementations of Bayeux that are not strictly part of the CometD project.

See http://cometd.org/

310 questions
31
votes
7 answers

Python Comet Server

I am building a web application that has a real-time feed (similar to Facebook's newsfeed) that I want to update via a long-polling mechanism. I understand that with Python, my choices are pretty much to either use Stackless (building from their…
HenryL
  • 543
  • 1
  • 6
  • 10
19
votes
1 answer

What is Cometd ? Why it is used and how to work on that

i'm just a beginner in cometd , and i'm interested and wanted to learn what cometd is and what for it is used i googled it out and found some resource.Under the following link 1.http://docs.cometd.org/reference/installation.html#d0e346. I tried…
Dunston
  • 395
  • 1
  • 3
  • 13
17
votes
2 answers

Django and Long Polling

I need to implement long polling in my application to retrieve the events. But I have no idea how to do it. I know the concept of long polling, i.e to leave the connection open, until an event occurs. But how do I do implement this in my project. If…
Robin
  • 5,366
  • 17
  • 57
  • 87
14
votes
2 answers

Push Notification in Spring MVC WebApp

I am currently writing a forum web-application using Spring MVC. I'm just a beginner at Spring and have only been working with it for about 1 week now. I need to implement push notifications. Here is the scenario: User A logs in and creates a post.…
COBOL
  • 1,031
  • 8
  • 16
  • 32
8
votes
1 answer

Match jetty url-pattern to only root directory

I would like to only password protect the root directory on my context path for a Jetty WebApp. My context path is /MyApp, so I would like to require a password for accessing: http://localhost:8080/MyApp But NOT…
Drewch
  • 555
  • 4
  • 9
7
votes
2 answers

Consuming Google Channel API in C#

The official documentation doesn't mention the support, but I'm wondering if it is possible to hook up a client program instead of javascript to use the Channel API. I'm currently using the basic polling technique from a windows app, having the…
savagepanda
  • 857
  • 12
  • 25
7
votes
1 answer

Safari JavaScript setTimeout stops when minimized

This is related to the following: Safari 9.1 for El Capitan Safari 10 for Sierra Does anyone know what is Safari doing in the JavaScript engine with respect to setTimeout() when the browser or the tab loses focus (mainly, is minimized)? I have…
aquacode
  • 393
  • 1
  • 4
  • 8
7
votes
1 answer

Why does mongodb seem to save some binary objects and not others?

I'm not sure where to start or what information is relevant please let me know what additional information may be useful in solving this problem. I am developing a simple cometd application and I'm using mongodb as my storage backend. I obtain a…
Alex W
  • 73
  • 5
7
votes
2 answers

Using a custom keystore with Jetty's WebSocketClientFactory

I have a Java project that is connecting to a CometD server over a secure WebSocket transport which uses a self-signed certificate. I'm configuring the WebSocketClientFactory in the following…
Adrian Petrescu
  • 16,629
  • 6
  • 56
  • 82
6
votes
2 answers

Pairing cometd session with HTTP session

We have a web application using Jetty 8.1, dojo, and cometd that interacts between the browser and web container using (1) a JSON/HTTP REST API for synchronous operations and (2) a cometd API to receive numerous events from the server. What we are…
Lightbeard
  • 4,011
  • 10
  • 49
  • 59
5
votes
1 answer

Cometd/bayeux client + salesforce streaming API issue

I have my .NET client (windows service) which subscribes to Salesforce streaming API push topics. I am able to connect to Salesforce and can get the notifications to my client. Everything is working fine, but: When there is no activity on the…
Guru Prasad
  • 569
  • 6
  • 13
5
votes
2 answers

Unexpected response 408 log in cometd client side

I am using a java cometd client. It was connected for several minutes, but after sometime it logged following error. What I should do on error 408? Should I disconnect, terminate, abort or just ignore, call Java GC? java.net.ProtocolException:…
rinjan
  • 550
  • 5
  • 19
4
votes
1 answer

implementation in cometD

I am new to CometD, Is there any simple example to implement service channel model in case of response/request model. I have seen cometd.org but there is no such example to how to send the response back if i publish to any channel. This is the…
JN_newbie
  • 5,492
  • 14
  • 59
  • 97
4
votes
1 answer

Publish messages using CometD Java client that can be consumed by Javascript subscribers

I have a Java web application that uses CometD. The workflow is simple: I have defined a service that acts upon receiving messages on channel "/service/hello". This service expects a parameter "name". Based on this it creates a channel named:…
mihaela
  • 219
  • 3
  • 16
4
votes
0 answers

Android, Cometd : Cometd sending alternate messages

I am working on an Android application in which I am implementing Chat functionality. The chat is quite fast given the usage of Cometd, but for some reason, Cometd is sending alternate messages. If it sends message-1, it doesn't send message-2, then…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
1
2 3
20 21