From 8295208a0b0f8dcc03a7eb61612a6053a334c1c7 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Wed, 20 Nov 2024 20:41:50 +0100 Subject: [PATCH] skip client after closing unresponsive client --- internal/websocket/broadcast.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/websocket/broadcast.go b/internal/websocket/broadcast.go index b8333fd..2165787 100644 --- a/internal/websocket/broadcast.go +++ b/internal/websocket/broadcast.go @@ -25,6 +25,7 @@ func SendPermanentBroadCastMessage() { if time.Now().Sub(client.LastPong) > (10 * time.Second) { // Remove unresponsive client client.Conn.Close() + continue } err := client.SendMessage(websocket.TextMessage, jsonMessage) if err != nil {