From 23703dbe3ec8b4d390f6195773bbc6b581f0eff1 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Mon, 29 Jan 2024 21:23:55 -0600 Subject: [PATCH] use game start dto that i already defined --- server.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server.go b/server.go index 6634c30..67145ab 100644 --- a/server.go +++ b/server.go @@ -94,10 +94,9 @@ func (s *Server) joinAndServe(p person) { go gameActor(ctx, g, p, other, nil) } // Reply with the game ID so they can share. - r := struct { - Game lobby.GameID `json:"game"` - }{ - Game: id, + r := serve.GameStart{ + ID: id, + Dealer: deal, } if err := wsjson.Write(context.TODO(), p.conn, r); err != nil { slog.WarnContext(ctx, "got a game but player dropped", "game", id, "player", p.id)