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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Socket.io.next: WebSocket.io + Engine.io

4 点作者 mixu超过 13 年前

1 comment

mixu超过 13 年前
So here's what LearnBoost is doing (if I understood this correctly): they're splitting Socket.io into two lower level layers, Websocket.io and Engine.io.<p>Websocket.io only does websockets transports (... all six of 'em)<p>Engine.io is a slightly higher level package that adds more transports (polling, flash), and which uses websocket.io.<p>These two both expose a websockets -like API over the transports they provide.<p>Socket.io becomes a particular implementation of a Comet stack that depends on these two, with some client extra niceties. This means that the code behind Socket.io can be reused elsewhere on a lower level without resorting to patching a full stack framework like Socket.io. Developers get a greater deal of control and the project is more clearly split into different parts. Awesome!