feat: add messages feature

This commit is contained in:
2026-06-25 01:11:13 +03:30
parent 27c20b1d34
commit 9a86d2bd4d
4 changed files with 100 additions and 1 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ func (h *Hub) handle(in inbound) {
}
h.enqueue(c, tier)
}
case "choose_trump", "play_card", "reshuffle", "leave":
case "choose_trump", "play_card", "reshuffle", "chat", "leave":
if c.room != nil {
if in.msg.Type == "leave" {
delete(h.locations, c.UserID) // پس از خروج دائمی، reconnect نشود