没有 AJAX 的彗星
假设我只有常规的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.