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
2
votes
2 answers

cometd via websocket: "unknown bayeux transport"

Im trying to connect to a commetd server via websocket client. I used exactly the code from an official cometd demo on github without modifications and try to connect to http://localhost:8080/cometd/test .. but as soon as my client tries to do the…
Magnus Lutz
  • 558
  • 3
  • 12
2
votes
0 answers

Are there any Bayeux clients in Python to subscribe to salesforce push-topic (streaming API)

I want to get the push-topic, salesforce streaming api data to frontend python client. I have seen few articles but none of them deals with python frontend. Most on Node.js. It would be really helpful if someone can point on how to subscribe to…
Cyclotron3x3
  • 2,188
  • 23
  • 40
2
votes
0 answers

Websockets as source of events for AWS Lambda?

Is there any chance that things like WebSockets, the Bayeux protocol, or long polling techniques, in general, could be used as a source of events to trigger AWS Lambdas? (without implementing an EC2-based listener)
Gabriel C
  • 1,012
  • 3
  • 12
  • 30
2
votes
1 answer

bayeux long polling comet ~ failed while using Proxy

I am trying to use Streaming API in SalesForce, which is basically implemented using Comet / Long Polling technology. In client, we're using Java with jetty-http , bayeux-api , cometd-java-client Everything works perfectly if we run the application…
iwan
  • 7,269
  • 18
  • 48
  • 66
2
votes
5 answers

How can I start ajax push website (activemq or cometd or something else)?

I want to start an application which will use ajax push, however the web server should be configured properly and i don't know how to start on server side components. I wanted to start with dojo's cometd and then read some blogs saying that activeMQ…
Sinan
  • 11,443
  • 7
  • 37
  • 48
1
vote
1 answer

Are there any mature PHP clients for Bayeux / CometD?

I'm in the process of evaluating different AJAX push servers, one of them of course is CometD - which uses the Bayeux protocol. Since the application server code will be based on PHP 5.3, it would be great not to reinvent the wheel and use an…
lastzero
  • 131
  • 1
  • 10
1
vote
1 answer

Comet message sent twice

I want to use Cometd in my project and tried the Jetty 8 version of it on a Tomcat 7 server. It works but the message is being sent twice. To check if it had something to do with the rest of the project I set up a stand-alone project with only this…
Micha Roon
  • 3,957
  • 2
  • 30
  • 48
1
vote
1 answer

Http Server Push with Netty + protobuf

We're designing a communications system for supporting asynchronous near-realtime server pushing of events/messages to thousands of clients acrros JVM, .Net and mobile platforms. We have a mixed model (both publish-subscribe and request-response)…
vlfig
  • 365
  • 1
  • 13
1
vote
3 answers

Cometd/bayeux client Issue

We have created .Net core windows service for consuming platform events from Salesforce(whenever a particular object created/updated in Salesforce want to fetch the information).We are using Cometd/bayeux client for subscribing Salesforce platforms…
Aneesh
  • 29
  • 5
1
vote
2 answers

Spring boot Consider defining a bean named 'servletContext' in your configuration

I have a project with several modules , and it's tomcat project.I need to convert to spring boot project. Here is a xml file with follow bean : …
Lisa.liu
  • 11
  • 1
  • 4
1
vote
1 answer

Parameters passed to cometd.subscribe()

Hopefully this isn't too specific/small a question, but I was wondering if anyone knew what the possible arguments are for the dojo cometd subscribe() function? The few examples I've seen indicate two parameters cometd.subscribe(channel,…
Steerpike
  • 17,163
  • 8
  • 39
  • 53
1
vote
1 answer

Salesforce cometD: 401::Request requires authentication

I have to subscribe to cometD Salesforce channel and hence building cometD client in python. I am using the below python library. https://github.com/dkmadigan/python-bayeux-client And below is the handshake response I am getting {'Host':…
Gagan
  • 1,775
  • 5
  • 31
  • 59
1
vote
1 answer

Usage of "advice" in Cumulocity Real Time Notifications

According to http://cumulocity.com/guides/reference/real-time-notifications/ a client that initiates a handshake for receiving real time notifications can include an advice in his request body. This advice can have a timeout ("Max. time in…
rob retro
  • 70
  • 5
1
vote
1 answer

Add custom fields to CometD subscribe message

I am using CometD Java client on Android. compile group: 'org.cometd.java', name: 'cometd-java-client', version: '2.9.1' I need to subscribe to a channel on a CometD server. But there is a problem - the server requires a custom subscribe message…
Kaarel Purde
  • 409
  • 1
  • 5
  • 12
1
vote
2 answers

why sometimes my EXTJS Web application become unresponsive on chrome

We are facing some bizarre issue with our web application when we run it on chrome. All the operations on the application executes as expected but on some days when we execute very basic and common features of the application, chrome starts…
Rahul
  • 11
  • 1