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

Bayeuxclient disconnects

I'm implementing Bayeuxclient(long-polling) for cometD connections for asynchronous messaging. Intermittently I receive a disconnect message out of the blue ( I haven't found any exception either in server or application logs) and try reconnecting.…
0
votes
1 answer

How can I publish a message to all Javascript subscribers for a channel using CometD?

Given a Java web application using CometD, how can I publish a message to all of a channel's subscribers each time a message is processed by bayeux? For testing, I used serverSession.deliver(serverSession, "/test-channel", map, null);. The result is…
Matt
  • 3,254
  • 3
  • 23
  • 32
0
votes
1 answer

Problems injecting a BayeuxService into another class with annotations

I have a web app that is using Bayeux to handle Comet connections. I initialize a BayeuxServer and tie it into Spring annotations and it all works fine, listening on selected channels and responding. I have a Jersey annotated class and an annotated…
zclark
  • 813
  • 2
  • 10
  • 26
0
votes
0 answers

Getting a 402 client unknown while trying to handshake with a CometD /Bayeux server

1- I'm trying to subscribe to a specific channel and to get a long-polling from one server, but I receive a client unknown Error 402. Did anyone face this issue before? Anything missing within the code? import asyncio from aiocometd import…
melzonko
  • 11
  • 8
0
votes
1 answer

"Run as Administrator" (System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.)

I am getting the WebException error only on 2 PCs (i tryed 5 diferent PCs). The problem does not occure if i start application "As administrator". I have tryed to add ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol…
Martin86
  • 123
  • 1
  • 2
  • 19
0
votes
1 answer

what actions should be triggered for /meta/connect channel message reconnect=handshake?

My application is subscribed to some Broadcast Bayeux channel. It also listen's to meta channels to receive any advice in case of any connection failure via /meta/connect. Now my question is do I need to restart my Bayeux client i.e first…
Dipankar Dey
  • 105
  • 1
  • 8
0
votes
1 answer

How do I get the response object in a bayeux server response in CometD

I am trying to customize the response of a bayeux server response so that i can add some header parameters before sending it back to UI. I am able to add header values in the request using customize method in a LongPollingTransport. Much help…
rahul
  • 67
  • 1
  • 1
  • 6
0
votes
1 answer

Bayeux/CometD C Lang Client

I'am trying to connect a WebRTC C client to a Java Server under CometD through Websocket. The problem is that, it is not possible to use regular websocket libraries like "Libwebsockets" to handshake the Java Bayeux Server. Is there any C library…
Hakeem El Bakka-lee
  • 756
  • 1
  • 7
  • 23
0
votes
1 answer

How the java client in cumulocity listens to events?

Aim is to build a java client that subscribe and listen to a channel. Then process the arriving events from the cumulocity server to hadoop. First it was difficult to connect(subscribe) to the cumulocity server using the java client. However, now we…
irfan aziz
  • 11
  • 4
0
votes
1 answer

How to pass the login credentials of the server in bayuexclient?

I aim to have a bayeux client that listens to the server for messages. However, I am still struggling with making the connection with server of the bayeux client. The server requires login credentials. But i found many examples without any login…
irfan aziz
  • 11
  • 4
0
votes
1 answer

How can a Bayeux Client stop receiving messages from Bayeux Server? Is there a way to block the channel between client and server at the client side?

At the server, CometD provides a MaxQueueListener hook to drop messages but if the Bayeux Client wants to stop receiving messages from a server without disconnecting , can it achieve that?
0
votes
1 answer

How to change the max size of an incoming CometD text message

I am trying to send a large message (>130k) to a CometD server that is running under Jetty 9. When the server receives this large message, it generates the following exception: org.eclipse.jetty.websocket.api.MessageTooLargeException: Text message…
Factor Three
  • 2,094
  • 5
  • 35
  • 51
0
votes
1 answer

Bayeux code example for Resin 4

Anyone have working (simple) example source code of the Bayeux + Comet support in Resin 4? Thanks. (or if not, any for Jetty?)
0
votes
1 answer

CometD service vs. broadcast channel

In the article http://www.cometdaily.com/2008/05/15/the-many-shades-of-bayeuxcometd-2/index.html the author describes: Often with PubSub, developers feel the need to create a channel per user in order to deliver private messages to a client. For…
Chap
  • 2,776
  • 24
  • 31
0
votes
1 answer

java client to subscribe to cometd channels

Our application that will act as a client needs to subscribe to an external system that uses cometd to deliver unsolicited notifications to clients. Is there a way to achieve this without cometd libraries (via apache HttpClient for instance)? Java…
Łukasz
  • 1,980
  • 6
  • 32
  • 52