diff --git a/cmd/server/usergameserver.go b/cmd/server/usergameserver.go index 60966f1..a5f4203 100644 --- a/cmd/server/usergameserver.go +++ b/cmd/server/usergameserver.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "fmt" - "io" "log" "time" ) @@ -130,5 +129,5 @@ func (ugs *UserGameServer) State(ctx context.Context) (UserGameState, error) { gameState.Players[k] = v } - return UserGameState(gameState), io.EOF + return UserGameState(gameState), nil } diff --git a/cmd/server/ws.go b/cmd/server/ws.go index 6ab59a7..cb13843 100644 --- a/cmd/server/ws.go +++ b/cmd/server/ws.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "fmt" - "io" "net/http" "slices" "strconv" @@ -149,7 +148,7 @@ func (ws WS) inProgressMsg(ctx context.Context, ugs *UserGameServer, gameState U } msg["items"] = items - return nil, io.EOF + return msg, nil } type inProgressMsgItem struct {