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 25a4798 commit 993d9f0Copy full SHA for 993d9f0
server/sse.go
@@ -271,7 +271,7 @@ func (s *SSEServer) handleSSE(w http.ResponseWriter, r *http.Request) {
271
for {
272
select {
273
case <-ticker.C:
274
- session.eventQueue <- fmt.Sprintf("event: ping\ndata: %s\n\n", time.Now().Format(time.RFC3339))
+ session.eventQueue <- fmt.Sprintf(":ping - %s\n\n", time.Now().Format(time.RFC3339))
275
case <-session.done:
276
return
277
case <-r.Context().Done():
0 commit comments