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?

时间:2016-10-20 19:45:33

标签: cometd bayeux

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?

1 个答案:

答案 0 :(得分:0)

BayeuxClient仅从其订阅的频道收到来自服务器的消息。

如果BayeuxClient停止从服务器接收消息,则可以取消订阅其订阅的所有频道。

BayeuxClient仍会在属于Bayeux协议的meta个频道上收到meta条消息,但服务器不会发送应用程序消息。

相关问题