philippseith / signalr

SignalR server and client in go
MIT License
141 stars 41 forks source link

Use context for sse #84

Closed andig closed 3 years ago

philippseith commented 3 years ago

The sse request is kept open to receive the server sent events for the lifetime of the connection, but ctx is the context requesting the connection and might have a timeout. When we use it as suggested, the connection will close after that timeout.