r3labs / sse

Server Sent Events server and client for Golang
Mozilla Public License 2.0
857 stars 179 forks source link

stream connection limits #172

Open verygoodsoftwarenotvirus opened 1 year ago

verygoodsoftwarenotvirus commented 1 year ago

I'd love to be able to, per-stream ID, say "this stream should have no more than 1 user connecting to it", and subsequently reject new subscriptions to that named stream. :)

SharkFourSix commented 9 months ago

Perhaps an in memory or redis session tracker/atomic counter middleware could do that?