如何配置 dojox.cometd 进行回调轮询?

发布于 2024-08-05 22:03:55 字数 187 浏览 6 评论 0原文

到目前为止,我找到了一些有关如何配置 dojox.cometd 的示例,但没有一个配置 connectionType。我目前对回调轮询而不是长轮询更感兴趣(据我所知,这是默认的轮询)。

有人可以帮助我吗?我必须承认,dojox 文档对我来说相当晦涩难懂,甚至源代码也有点模糊(至少对我来说,我不是一个 javascript-ninja 编码员)

So far I found some examples on how to configure dojox.cometd, but none of them configure the connectionType. I am currently more interested in callback-polling instead of the long-polling (that is the default one, as far as I know).

Somebody can help me here? I must admit that the dojox documentation is quite obscure for me, and even the source code is kind of obfuscated (at least to me, I am no a javascript-ninja coder)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

め可乐爱微笑 2024-08-12 22:03:55

好的,我想我发现 dojo 足够聪明,可以激活查看请求的 url 的回调轮询。

Ok, I think I figured out that dojo is smart enough to activate the callback-polling looking at the url requested.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文