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?

- 隐藏被引用文字 -

相关文章

我有一个网格,可以根据更大的树结构编辑小块数据.为了更容易...
我即将开始开发一款教育性的视频游戏.我已经决定以一种我可以...
我正在使用带有Grails2.3.9的Dojo1.9.DojoNumberTextBox小部...
1.引言鉴于个人需求的转变,本系列将记录自学arcgisapiforja...
我正在阅读使用dojo’sdeclare进行类创建的语法.描述令人困惑...
我的团队由更多的java人员和JavaScript经验丰富组成.我知道这...