Feat: add sse broker

This commit is contained in:
Grail Finder
2025-05-03 13:18:51 +03:00
parent 8d85d0612c
commit 0fbc106f9a
5 changed files with 140 additions and 3 deletions

View File

@ -40,6 +40,8 @@ func HandleShowColor(w http.ResponseWriter, r *http.Request) {
abortWithError(w, "failed to get room")
return
}
log.Debug("got room", "room", room)
// update room score
color, exists := roundWords[word]
log.Debug("got show-color request", "word", word, "color", color)
if !exists {