MatthewWid / better-sse

⬆ Dead simple, dependency-less, spec-compliant server-sent events implementation for Node, written in TypeScript.
MIT License
485 stars 14 forks source link

Keep-alive #17

Closed MatthewWid closed 3 years ago

MatthewWid commented 3 years ago

This PR adds a keep-alive mechanism that sends an empty comment in set intervals to prevent the connection from timing out.

In addition, it also: