diff --git a/backend/internal/ws/client.go b/backend/internal/ws/client.go index 741f1d1..f980de0 100644 --- a/backend/internal/ws/client.go +++ b/backend/internal/ws/client.go @@ -240,6 +240,7 @@ func (c *clientImpl) ReadPump() { case *messages.Message_StartEarly: c.logger.Debugw("received StartEarly packet", "gameId", c.game, "userId", c.user.ID) c.server.StartGameEarly(c.user.ID, c.game) + break default: message.PlayerId = c.user.ID events.Publish("server.broadcast", c.user.ID, message)