]> git.cworth.org Git - lmno-server/commitdiff
Fix game-state object to include players judging and answering
authorCarl Worth <cworth@cworth.org>
Sun, 14 Jun 2020 21:55:12 +0000 (14:55 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 25 Jun 2020 16:16:04 +0000 (09:16 -0700)
Previously, these were always appearing as empty objects in the JSON
results that we streamed from the server in the game-state object
because JSON.stringify doesn't natively know how to serialize a Set
object.

Here, we provide a replacer function that serializes a Set object as
an array.


No differences found