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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

ReconnectingWebSocket

47 点作者 joewalnes超过 11 年前

7 条评论

tinco超过 11 年前
Does not even back off. I like the idea of offering libraries that provide some abstraction over standard libraries, but what's the use if it's just the most trivial solution that's unusable for any production situation?
评论 #6988215 未加载
评论 #6988076 未加载
jamespitts超过 11 年前
Always important because our beloved websockets are fragile!<p>socket.io has it built in, but in various projects I had to hoist my own reconnect functionality on top because reconnects kept failing.<p>engine.io aims to be more reliable than socket.io, mainly due to connecting via the fallback methods first, then establishing a websocket connection. I have not used e.io yet but intend to soon.<p><a href="http://stackoverflow.com/questions/9610951/how-is-engine-io-different-from-socket-io" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;9610951&#x2F;how-is-engine-io-...</a>
nawitus超过 11 年前
Socket.io is a decent WebSocket wrapper which also reconnects, and of course has lots of other features.
评论 #6987553 未加载
评论 #6987495 未加载
pornel超过 11 年前
One of the nice things about EventSource (server-sent events) is that it reconnects by default, and error recovery logic is handled by the browser.
DanWaterworth超过 11 年前
This seems a bit naive. No ping&#x2F;pong, no mention of what happens to messages in transit when the connection drops.
评论 #6988250 未加载
tantalor超过 11 年前
No tests?
patrickaljord超过 11 年前
That&#x27;s what I use. Works as advertised. Should be part of the spec I think.