+ {
+ // Dummy messages listener: just send "duplicate" event on anything
+ // ('connect' events for Hall and Game, 'askfullgame' for observers)
+ return socket.on("message", objtxt => {
+ if (["connect","askfullgame"].includes(JSON.parse(objtxt).code))
+ socket.send(JSON.stringify({code:"duplicate"}));
+ });
+ }