微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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?

- 隐藏被引用文字 -

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐