用于 Node.js 的哪个 websocket 库? [关闭]

Currently there is a plethora of websocket libraries for node.js, the most popular seem to be:

However I can't find any solid concrete comparisons between any of them... Apparently Socket.io was awesome, but has become quite dated and has failing builds. Both ws and websocket-node claim they are the fastest. And engine.io seems new, but a lot heavier than the lighter aletarntives.

It would be amazing if we or someone could put together an answer that serves as a guide on which socket library to use and when, as well as a comparison between them.

转载于:https://stackoverflow.com/questions/16392260/which-websocket-library-to-use-with-node-js

csdnceshi59
ℙℕℤℝ if interested, heres why this got closed: meta.stackoverflow.com/questions/291052/… ( i think)
3 年多之前 回复
csdnceshi73
喵-见缝插针 For what it's worth, Socket.IO is solid. If you need browser compatibility, I recommend it. If you're looking for something pure websocket, use something else.
大约 7 年之前 回复
weixin_41568131
10.24 I use Primus with ws these days, as ws is all I needed, if I need something more extreme, I just swap out the undering library and keep the same api thanks to Primus. Works wonders.
大约 7 年之前 回复
csdnceshi55
~Onlooker can you update the community with your choice and if you are happy with it? is it socket.io?
大约 7 年之前 回复
csdnceshi75
衫裤跑路 I agree, I would like to see this kind of question not just allowed, but encouraged. OK, they may not be relevant in a years time, but till then they will save the world.
7 年多之前 回复
weixin_41568131
10.24 Woot woot for community wikis, meaning that despite the question being closed from new answers, we can still improve the community wiki answer below :)
7 年多之前 回复
weixin_41568131
10.24 If this gets closed, where should a question like this go? As the answer will be incredibly useful... Seems unfortunate that such a prominent question shouldn't reside here.
7 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐