Skip to content

Commit

Permalink
fix: change bson responses in the player connection to be more consis…
Browse files Browse the repository at this point in the history
…tent
  • Loading branch information
jahrim committed Aug 26, 2023
1 parent 2912c98 commit 7403e7f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ class PlayerConnectionHandler(context: AdapterContext[ChessGamePort]) extends We
bson {
"methodCall" :# {
"method" :: "GetState"
"output" :: serverState
"output" :# {
"serverState" :: serverState
}
}
}
)
Expand All @@ -83,7 +85,9 @@ class PlayerConnectionHandler(context: AdapterContext[ChessGamePort]) extends We
bson {
"methodCall" :# {
"method" :: "FindMoves"
"output" :: moves.toSeq
"output" :# {
"moves" :: moves.toSeq
}
}
}
)
Expand Down

0 comments on commit 7403e7f

Please sign in to comment.