这个应用程序正在使用长轮询?

发布于 2024-08-25 00:44:11 字数 187 浏览 1 评论 0原文

我想知道这个网络应用程序是否使用长轮询或其他任何“javascript 技巧”:

http://typewith.me/ 2wicOjuefI

有办法知道吗?

谢谢 ;)

I want to know if this web app are using long polling or anything else "javascript trick":

http://typewith.me/2wicOjuefI

Is there a way to know that ?

Thanks ;)

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

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

发布评论

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

评论(1

江湖正好 2024-09-01 00:44:11

是的,他们正在使用长轮询彗星。打开 Fiddler,您将看到请求。 URL 几乎已经泄露了一切。

/comet/channel?v=2&r=969379046853&id=1847544712​​55&channel=longpolling&seq=15&timeout=10000

在IE中,客户端发出请求,等待服务器响应。一旦服务器响应,连接就会关闭,并建立另一个连接以等待下一个响应。这可以防止 IE 中未关闭连接时可能出现的内存问题。在 Firefox 中,他们可能只使用 multipart-replace。

Yep, they're using long polling comet. Open Fiddler and you'll see the requests. The URL pretty much gives it away.

/comet/channel?v=2&r=969379046853&id=184754471255&channel=longpolling&seq=15&timeout=10000

In IE, the client makes a request and waits for the server to respond. As soon as the server responds the connection is closed and another connection is made to wait for the next response. This prevents memory issues that can occur in IE with unclosed connections. It's possible in Firefox they just use multipart-replace.

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