实时推送
每秒十次更新,最好的方法是什么?除了 WebSockets(未完全实现)之外,还有什么可以实现这一点?
创建 Java Applet 值得吗?你能以这种方式与 DOM 交互吗?
Ten updates a second, what would be the best way to do that? Aside from WebSockets (not fully implemented) what can accomplish this?
Would creating a Java Applet be worth it? Can you interact with the DOM in that fashion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
每秒前 10 条更新并不意味着每秒向浏览器发送 10 条消息,您可以搭载更新以每秒发送一条消息(比如说)——更新速度没有比肉眼可见的速度快。
Commetd/Bayeuax 为我工作。
First 10 updates a second does not imply 10 messgaes a second to the browser, you can piggy-back updates to send one message a second (say) - no point in updates faster than the eye can see.
Commetd/Bayeuax worked for me.
是的,JAVA Applet 或任何其他 Applet(如 Flex 或 Silverlight)都能够处理该速度。
至于服务器端,我认为你需要一个推送服务器,如果每个响应都是由客户端轮询请求触发的,那么你无法达到每秒 10 个响应的速率。
你必须让数据流异步地来自服务器。
推送服务器示例: 推送框架: http://www.pushframework.com
Yes a JAVA Applet or any other Applet like Flex or Silverlight would be able to handle that speed.
As for the server side, I think you need a push server, you can't reach that rate of 10 responses / sec if each response is triggered by a client side polling request.
You you've got to let the flow of data come asynchronously from the server.
Examples of push server : Push Framework : http://www.pushframework.com