实时推送

发布于 2024-09-16 21:27:25 字数 103 浏览 2 评论 0原文

每秒十次更新,最好的方法是什么?除了 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 技术交流群。

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

发布评论

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

评论(2

清音悠歌 2024-09-23 21:27:25

每秒前 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.

泡沫很甜 2024-09-23 21:27:25

是的,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

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