},
// TODO: also option to takeback a move ?
- update: function(gameId, obj) //move, fen, clocks, score, initime, ...
+ // obj: chat, move, fen, clocks, score[Msg], initime, ...
+ update: function(gameId, obj)
{
if (Number.isInteger(gameId) || !isNaN(parseInt(gameId)))
{
gid: gameId,
newObj:
{
+ chat: obj.chat,
move: obj.move, //may be undefined...
fen: obj.fen,
- message: obj.message,
score: obj.score,
+ scoreMsg: obj.scoreMsg,
drawOffer: obj.drawOffer,
}
}