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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why you should never use Socket.IO

41 点作者 alexhultman超过 8 年前

7 条评论

Sacho超过 8 年前
I like the library but the title is pure clickbait. I expected an article arguing this position, not a github repo. The github repo simply does not explain why &quot;you should never use Socket.IO&quot; - performance is not necessarily the only feature Socket.IO offers, it could be API surface, etc..Socket.IO is also two parts - a client and a server, and this library is just a server.<p>The title is doubly worse because it doesn&#x27;t actually promote the library. You could quote the repo instead - &quot;mWebSockets - a lightweight, efficient &amp; scalable WebSocket server&quot;
评论 #12907368 未加载
sova超过 8 年前
I appreciate there&#x27;s a drop-in replacement line for existing socket.IO apps. Thanks for making something awesome
sgrytoyr超过 8 年前
The killer Socket.IO feature for me is being able to talk to clients from other server processes using socket.io-redis and socket.io-emitter [1].<p>Any ideas how we can achieve something similar using µWS? I guess using it as the engine in Socket.IO would do it, but let’s assume we want to get rid of Socket.IO entirely.<p>[1] <a href="http:&#x2F;&#x2F;socket.io&#x2F;docs&#x2F;rooms-and-namespaces&#x2F;#sending-messages-from-the-outside-world" rel="nofollow">http:&#x2F;&#x2F;socket.io&#x2F;docs&#x2F;rooms-and-namespaces&#x2F;#sending-messages...</a>
boylove142超过 8 年前
Can I have opinions from someone who have already used this?
评论 #12906328 未加载
评论 #12906364 未加载
always_good超过 8 年前
Hard to take a &quot;socket.io killer&quot; seriously when it doesn&#x27;t even implement bare necessities like message_id callbacks:<p><pre><code> socket.emit(&#x27;msg&#x27;, &#x27;hello&#x27;, (err) =&gt; ...) </code></pre> At which point the nice part of using socket.io is that there are a variety of clients (and server impls) so every one of your users doesn&#x27;t need to implement things like message_id callbacks.
评论 #12906228 未加载
评论 #12906241 未加载
nikkwong超过 8 年前
Care to share why Socket.IO is so poorly implemented? It seems to be a small wrapper around the socket protocol—what could be written so poorly?
评论 #12906185 未加载
sotojuan超过 8 年前
Good post, but will sadly go unseen due to elections. Will try to share it once things calm down!
评论 #12906120 未加载
评论 #12906122 未加载