From a8574dfebe5cd8ca680d79223862c47bbb62e576 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Sun, 12 Mar 2023 16:25:54 -0500 Subject: [PATCH] Don't sleep on server between messages --- server/Streaming.md | 1 - 1 file changed, 1 deletion(-) diff --git a/server/Streaming.md b/server/Streaming.md index 573bb77..9d28a84 100644 --- a/server/Streaming.md +++ b/server/Streaming.md @@ -57,7 +57,6 @@ func clientConnected(w http.ResponseWriter, r *http.Request) { c.WriteMessage(websocket.TextMessage, []byte("authenticated")) for { - time.Sleep(25 * time.Millisecond) _, message, err := c.ReadMessage() if err != nil { log.Println("read:", err)