SHAGRAM 1.0

This commit is contained in:
emil28092005
2026-01-13 01:07:56 +03:00
parent 04646192bc
commit 975aea12c9
8 changed files with 301 additions and 23 deletions
+8
View File
@@ -23,3 +23,11 @@ func (h *Hub) CleanupRoom(roomID string) {
delete(h.rooms, roomID)
}
}
func (h *Hub) Rooms() []string {
ids := make([]string, 0, len(h.rooms))
for id := range h.rooms {
ids = append(ids, id)
}
return ids
}