Our great sponsors
-
better-sse
⬆ Dead simple, dependency-less, spec-compliant server-side events implementation for Node, written in TypeScript.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I wrote a library for using SSE with Node and have read the spec front-to-back dozens of times when I was working on it, so I have a fairly good understanding if you have any more unanswered questions!
In addition to what /u/MatthewMob posted, here is another library/ polyfill that I have used in the past: https://github.com/EventSource/eventsource
Related posts
- I made a library to make it a breeze to work with server-sent events, server push without websockets
- Announcing Node.js 22.0.0: What’s New and Why It Matters
- How to Make a VS Code Extension Using TypeScript: A Step-by-Step Guide
- Getting Started with Next.js: Part 1 - Setting Up Your Project
- How to create a react project from scratch