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() mu.Unlock()
// Read loop
for { for {
var incoming models.Message var incoming models.Message
if err := conn.ReadJSON(&incoming); err != nil { if err := conn.ReadJSON(&incoming); err != nil {
break // client disconnected break
} }
incoming.CreatedAt = time.Now() incoming.CreatedAt = time.Now()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 32 KiB