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
1
vote
1 answer

CometD v3.0.9 - server side disconnect doesn't set the successful flag on message (channel /meta/disconnect)

We are upgrading cometd from version 2.5 to 3.0.9 but with websockets disabled. One of the changes we notice is :- org.cometd.server.ServerSessionImpl disconnect() method no longer sets the successful flag on the message, before publishing it to…
crathour
  • 60
  • 6
1
vote
1 answer

How do I turn off DBUG level logging in BayeuxServer (embedded in Jetty)?

When running the CometD Bayeux implementation in Jetty (7.1.5), lots of DBUG level logging is output to the console. I've identified the logger as a org.eclipse.jetty.util.log.StdErrLog instance, but I'm not sure how to configure it. I'm using Jetty…
Ash
  • 9,296
  • 2
  • 24
  • 32
1
vote
1 answer

CometD - how estabilish long-polling connection

Just to make sure I do this correctly. I am coding a Bayeux client to cooperate with external CometD server (via long-polling). My client sends requests in the following order: handshake, connect, subscribe, connect. The latter connect is stalled…
Łukasz
  • 1,980
  • 6
  • 32
  • 52
1
vote
1 answer

Does CometD (Comet with Bayeux Protocol) use HTTP streaming or HTTP long polling?

There are two techniques for implementing Comet. One uses HTTP streaming, which uses a single persisted TCP connection to send and receive multiple HTTP requests/responses between client/server.The second is HTTP long polling, which keeps a…
Donato
  • 2,727
  • 6
  • 29
  • 59
1
vote
1 answer

Does phantomjs support Bayeux or WebSockets?

Just simple question, because I didn't find any references in docs..
milushov
  • 710
  • 11
  • 28
1
vote
1 answer

Filter/Prevent client publishing behavior to rooms in Faye

I was looking at using Faye for a project I've been working on since socket.io has been causing me trouble. I set up and played with some of the examples on their github and found that clients can publish straight to whatever room they are…
Billy
  • 886
  • 8
  • 18
1
vote
1 answer

Duplicate instance of Bayeux Server created

I'm having a problem with my CometD Application. It looks like its creating multiple instances of the Bayeux Server. My configuration Files look like the following and i'm using Web Sockets as Transport/GigaSpaces to deploy the Application (which…
user676567
  • 1,119
  • 9
  • 20
  • 39
1
vote
1 answer

CometD Subscription Listeners

I’m having a problem processing Subscription Requests from Clients and carrying out some processing based on the request. I’d like to be able to invoke a method and carry out some processing when an incoming subscription request is received on the…
user676567
  • 1,119
  • 9
  • 20
  • 39
1
vote
0 answers

Bayeux sessions are missing in websphere cluster

I have a Bayeux implementation as specified by IBM. In a stand-alone environment it works fine, but when we put it into production (clusterized), sessions are getting lost after a while. We are using SIBUS as the bus implementation and the default…
Oso
  • 528
  • 4
  • 18
1
vote
2 answers

Browser not sending any data (no errors)

So I have a faye server and a rails web application. It all worked fine till recently. Now the browser is not sending anythin to the server. There a no error not on the server not even in browser (I can create an instance of Faye.Client just fine).…
Matjaz Muhic
  • 5,328
  • 2
  • 16
  • 34
1
vote
1 answer

Meteorjs - which protocol is it using?

I'm looking at MeteorJS at the moment and I was wondering which protocol they are using on their channels. Is it Bayeux ? their own ? I wasn't able to find easy accessible infos on their website ( I mean apart from digging in the source code) thanx.
kktos
  • 13
  • 2
1
vote
2 answers

how to to create the path of the view to subscribe ,to a message published by bayeux.getClient().publish(

i am using node js and faye to simply pass some messages to clients , i create a node server var http = require('http'), faye = require('faye'), url = require('url'), qs = require('querystring'); var POST; var bayeux = new…
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193
0
votes
2 answers

appserver/platform agnostic bayeux implementation

Am planning to create a bayeux implementation (comet) i.e a charting application which pulls the data from server and updates the chart accordingly But is there anyway I can create a platform agnostic bayeux implemenation i.e if I develop for…
siva
  • 1,105
  • 4
  • 19
  • 38
0
votes
1 answer

jquery.cometd initialization problems

I am trying to create a simple test HTML page which shows messages from a Bayeux server. this is the code: test Baeyux connexion
Micha Roon
  • 3,957
  • 2
  • 30
  • 48
0
votes
0 answers

Which are the benefits of Bayeux protocol compared to REST?

I've been using REST but I want more performance when working with large streams of data. Why does Bayeux protocol may be a better idea than REST? Which are the scenarios where Bayeux is the option? Doing research and working on a POC for now.