Skip to content

Commit bdc9c68

Browse files
committed
send and initial log message
1 parent f5e2a35 commit bdc9c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/handlers/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func HandleUpdateEvents(updater *update.Manager) http.HandlerFunc {
141141
}()
142142

143143
// Send an initial heartbeat to return a feedback to the client
144-
sseStream.Send(render.SSEEvent{Type: "heartbeat"})
144+
sseStream.Send(render.SSEEvent{Type: update.UpgradeLineEvent.String(), Data: "connected to update events stream"})
145145

146146
ch := updater.Subscribe()
147147
defer updater.Unsubscribe(ch)

0 commit comments

Comments
 (0)