This commit is contained in:
2026-01-27 11:00:43 +00:00
parent 5a4f2f9680
commit 6469cb4ad7
2 changed files with 1 additions and 2 deletions

View File

@@ -35,11 +35,10 @@ func HandleWebSocket(conn *websocket.Conn) {
}
mu.Unlock()
// Read loop
for {
var incoming models.Message
if err := conn.ReadJSON(&incoming); err != nil {
break // client disconnected
break
}
incoming.CreatedAt = time.Now()