This is a simple example of using Server-Sent Events (SSE) with Koa.js. It uses the koa-sse
package to handle the server-sent events.
npm install
npm run dev
Open the browser and go to http://localhost:3002/sse
. You should see a stream of server-sent events being generated.