You can extend a boardgame.io storage adapter to add custom functionality.
This example wraps the original setState
method to accomplish some other task
when the game is over — in this case posting the game logs elsewhere via a
hypothetical dumpEndOfGameLog
function.
(The example uses the FlatFile
storage class, but should work with any other
boardgame.io storage class.)