Questions tagged [bayeux]

Bayeux is a protocol for transporting asynchronous messages (primarily over HTTP), with low latency between a web server and a web client. The messages are routed via named channels and can be delivered: server to client, client to server, client to client (via the server).

The primary purpose of Bayeux is to support responsive bidirectional interactions between web clients, for example using using AJAX, and the web server.

Bayeux is a protocol for transporting asynchronous messages (primarily over HTTP), with low latency between a web server and a web client. The messages are routed via named channels and can be delivered:

  • server to client
  • client to server
  • client to client (via the server)

By default, publish subscribe routing semantics are applied to the channels.

Delivery of asynchronous messages from the server to a web client is often described as server-push.

The combination of server push techniques with an Ajax web application has been called Comet.

Bayeux seeks to reduce the complexity of developing Comet web applications by allowing implementors to more easily interoperate, to solve common message distribution and routing problems, and to provide mechanisms for incremental improvements and extensions.

See http://cometd.org/documentation/bayeux

80 questions
103
votes
3 answers

Faye vs. Socket.IO (and Juggernaut)

Socket.IO seems to be the most popular and active WebSocket emulation library. Juggernaut uses it to create a complete pub/sub system. Faye is also popular and active, and has its own javascript library, making its complete functionality comparable…
John Bachir
  • 22,495
  • 29
  • 154
  • 227
8
votes
1 answer

Difference between async servlet long poll and bayeux protocol (Comet)

What is the difference between a simple Async servlet and the Comet / Bayeux protocol? I am trying to implement a "Server Push" (or "Reverse Ajax") kind of webpage that will receive updates from the server as and when events occur on the server. So…
Basanth Roy
  • 6,272
  • 5
  • 25
  • 25
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
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
4
votes
1 answer

Are there any Bayeux clients in Python?

I need to connect to a Bayeux server form a wxPython APP. I would appreciate any hint about that.
hegemon
  • 6,614
  • 2
  • 32
  • 30
3
votes
1 answer

System requirements for Cometd/Bayeux Usage on Android

I'm trying to implement a Cometd/Bayeux server on Android using iJetty. The Jetty implementation itself works just fine serving static pages along with servlets. I am trying to up the ante a bit and create a Bayeux application on the phone but I'm…
Chris Thompson
  • 35,167
  • 12
  • 80
  • 109
3
votes
2 answers

How can I connect GWT to CometD/Bayeux events?

I've got a GWT application, which periodically needs to update the screen with new tick items as they come in. We also have messages published by a CometD/Bayeux server (for a different AJAX application) and I'd like to consume them in my GWT. Of…
AlBlue
  • 23,254
  • 14
  • 71
  • 91
3
votes
1 answer

Grails with Comet working example

I'm trying to implement server Push technology in Grails application using Comet by working out few simple examples, but I'm struggling to make it really work. I've been trying out 2 examples from the below 2 links and it is not working. Not…
Gnanam
  • 10,613
  • 19
  • 54
  • 72
3
votes
2 answers

Bayeux protocol and how it supports multiple tabs opened in a single browser

My question is regarding how Bayeux protocol is making it possible to have multiple tabs opened in a single browser. If we use publish/subscribe paradigm also, we need to send request to server for subscribing then will that connection be opened? If…
cherry
  • 137
  • 2
  • 13
2
votes
1 answer

Bayaux protocol implementation for Jquery

We have an application running on jQuery. In this, there is requirement of implementing Bayaux protocol. But AFAIK, only DOJO has implemented the Bayaux protocol in the form of cometd. As we are fully dependent on jQuery, we can not import whole…
Abhijeet Pawar
  • 690
  • 6
  • 19
2
votes
1 answer

OSGi, Jetty and CometD/Bayeux

I have got Jetty and Bayeux working well together to allow me to use comet with dojo. However, I now need to move to an OSGi jetty environment and am struggling to get it working. In the non-OSGi environment, the following line works and lets me…
EdJ
  • 1,296
  • 1
  • 11
  • 16
2
votes
1 answer

CometD/Bayeux client for iphone

Im looking for a Bayeux/CometD client for the iPhone. Objective-C implementation would work. Any idea where I can get it from? or any idea how I can create one cometD client for iphone .
Milianoo
  • 1,476
  • 1
  • 10
  • 9
2
votes
1 answer

What is the java cometd pattern for notifying clients of server-side events?

I'm struggling to understand an efficient way to notify clients without wasting threads. When a client connects to a CometD servlet, I want to start monitoring server-side events for the client, and publish them to the client when they are…
g_pass
  • 711
  • 7
  • 15
2
votes
2 answers

Java bayeux client disconnects with TimeoutException when idle

I'm initializing Bayeux client: SslContextFactory sslContextFactory = new SslContextFactory(true); HttpClient httpClient = new HttpClient(sslContextFactory); httpClient.start(); Map options = new HashMap
Tudor
  • 2,224
  • 2
  • 21
  • 24
1
2 3 4 5 6