huge optimization to network
This commit is contained in:
parent
9c2deb3dcb
commit
8cc663d9a7
2 changed files with 5 additions and 3 deletions
4
game.js
4
game.js
|
@ -181,7 +181,9 @@ class Game extends GameBasic {
|
|||
|
||||
na.push(JSON.stringify([this.width, this.height]))
|
||||
|
||||
client.send(`[${na.join(',')}]`);
|
||||
let dd = `[${na.join(',')}]`;
|
||||
|
||||
client.send(dd);
|
||||
|
||||
wsEnt.isYou = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue