Don't sleep on server between messages

This commit is contained in:
Kevin F 2023-03-12 16:25:54 -05:00
parent 3d9a31f4af
commit a8574dfebe

View File

@ -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)