TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Why Socket.io still don't work properly?

1 点作者 tarikozket超过 9 年前
If you open Socket.io&#x27;s demo page now, it would say 33001 participants. Here is a screenshot if you couldn&#x27;t catch before they reset: http:&#x2F;&#x2F;i.imgur.com&#x2F;yJHYJvh.png<p>That&#x27;s not true. It&#x27;s still can&#x27;t able to capture disconnect event properly. We have been using Socket.io in one of our projects couple years ago and the same issue was occurring. Does anybody know why is it still happening? Is it that hard to maintain connections pool?

1 comment

hackerboos超过 9 年前
Looks like the demo hasn&#x27;t been update to use io.engine.clientsCount<p><a href="https:&#x2F;&#x2F;github.com&#x2F;socketio&#x2F;socket.io&#x2F;blob&#x2F;master&#x2F;examples&#x2F;chat&#x2F;index.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;socketio&#x2F;socket.io&#x2F;blob&#x2F;master&#x2F;examples&#x2F;c...</a><p>Maybe make a pull request?