Acceptable state, but still issues when a lot of moves arrive quickly on several...
[vchess.git] / server / sockets.js
index e6e85ed..406effe 100644 (file)
@@ -192,7 +192,7 @@ module.exports = function(wss) {
             Object.keys(clients[page][obj.target]).forEach(x => {
               send(
                 clients[page][obj.target][x],
-                {code: "newmove", dataWithFrom}
+                Object.assign({code: "newmove"}, dataWithFrom)
               );
             });
           } else {