sseserver is a Go library for SSE streams, offering multiple caching strategies and flexible resync logic.
Stream Types:
GenericStream: Custom resync logic for maximum flexibilityCachedStream: Time-based caching of eventsCachedCountStream: Fixed-size event cachingLastOnlyStream: Only resends the most recent event
go get -u github.com/advbet/sseserver/v2Make sure your HTTP server WriteTimeout is bigger than Stream Lifetime, otherwise connections will be
closed from HTTP server side and clients will not be able to receive events.
See _examples/ directory.