add real-time infrastructure #137

Merged
talksik merged 6 commits from realtime-infra into master 2026-04-09 19:08:19 +00:00
Showing only changes of commit 7890304639 - Show all commits
+5
View File
@@ -44,6 +44,11 @@ func (c *Conn) ReadPump(ctx context.Context, hub *Hub) {
return
}
// Ignore keep-alive pings
if string(data) == "ping" {
continue
}
var msg ClientMessage
if err := json.Unmarshal(data, &msg); err != nil {
c.sendError("invalid message format")