cometd: dojo channel ""/cometd/meta"

前端之家收集整理的这篇文章主要介绍了cometd: dojo channel ""/cometd/meta"前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

"/cometd/Meta"

I didn't have time to test it,but here's a code snippet that I *think*
should work:

function listenerFunc(event)
{
if (event.action == "disconnect")
{
// do something
}

}

dojo.subscribe("/cometd/Meta",dojo.hitch(listenerFunc));

The idea is that you can subscribe to /cometd/Meta. I use it to detect
reconnects,handshakes,etc. Take a look at the Cometd Chat demo.

-Geoffrey Lee

On Feb 8,2008 4:58 PM,mgorkani <mgork...@gmail.com> wrote:

> In cometd 6.1.6 it was possible to subscribe to /Meta/disconnect
> channel. With 6.1.7 this doesn't seem to be supported. Any other way
> to be notified that a client has been disconnect without overwriting
> something in the actual cometd code?

- 隐藏被引用文字 -
原文链接:https://www.f2er.com/dojo/291926.html

猜你在找的Dojo相关文章