没有 AJAX 的彗星

发布于 2024-08-26 06:49:21 字数 112 浏览 1 评论 0原文

假设我只有常规的 J2SE http 库,但想编写一个 comet 的客户端,例如 Android 等,但不限于此,即不使用 WebView。由于没有浏览器,我假设您必须自己打开长期连接......这可行吗?

Suppose I only had the regular J2SE http libraries but wanted to write a
client for comet, say in Android etc, but not limited to that, i.e. not using a WebView. Since there's no browser I'm assuming you'd have to open the long term connections yourself ... is this feasible?

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

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

发布评论

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

评论(1

爱的十字路口 2024-09-02 06:49:21

Comet 仅在浏览器环境中需要。当您可以访问 J2ME/Android 库时,您不需要使用 Comet —— 您只需使用套接字的全部功能即可完成您想要的所有操作。

Comet is only required in a browser environment. When you have access to J2ME/Android libraries you don't need to employ comet -- you simply do all what you want with full power of sockets.

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