We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be8ed9 commit 8839da3Copy full SHA for 8839da3
internal/api/handlers/update.go
@@ -140,6 +140,9 @@ func HandleUpdateEvents(updater *update.Manager) http.HandlerFunc {
140
slog.Info("SSE stream closed", slog.String("client", r.RemoteAddr))
141
}()
142
143
+ // Send an initial heartbeat to return a feedback to the client
144
+ sseStream.Send(render.SSEEvent{Type: "heartbeat"})
145
+
146
ch := updater.Subscribe()
147
defer updater.Unsubscribe(ch)
148
0 commit comments