- commit
- f17e1298e4d8d887d6803b17b676979bd3581170
- parent
- 00b93f62d86e92cce13b3fd4e79c513b46ead4b6
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-04-08 19:44
SSE: send comment every 15s as mentioned in the spec https://html.spec.whatwg.org/multipage/server-sent-events.html#authoring-notes
Diffstat
| M | via.go | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/via.go b/via.go
@@ -151,7 +151,7 @@ func getSse(w http.ResponseWriter, r *http.Request) {
151 151
152 152 ctx := r.Context()
153 153
154 -1 ticker := time.NewTicker(10 * time.Second)
-1 154 ticker := time.NewTicker(15 * time.Second)
155 155 defer ticker.Stop()
156 156
157 157 flusher, ok := w.(http.Flusher)