TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

4 pointsby mixuover 13 years ago

1 comment

mixuover 13 years ago
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!