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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: JavaScript server-sent events library

7 点作者 jkarneges超过 4 年前

1 comment

jkarneges超过 4 年前
Hi HN!<p>This library makes it super easy to push data to clients from a JS server app. Just a few lines of code to declare an endpoint for clients to connect to, and to send events to them.<p>Notably, the library works in serverless&#x2F;function-as-a-service environments by delegating away the connection management to a special proxy layer. This means you can deploy the app to something like AWS Lambda or Vercel and it will still support SSE connections, with no code changes. This capability is optional but we think it could help make realtime app development easier as people move to serverless deployments.