Optimize _Saverdict.update that caused issues for webclient option update (#2224)

This commit is contained in:
Griatch 2020-11-01 11:19:14 +01:00
parent 668551a0d5
commit 91e2e68291
5 changed files with 10 additions and 5 deletions

View file

@ -268,12 +268,14 @@ An "emitter" object must have a function
// Parse the incoming data, send to emitter
// Incoming data is on the form [cmdname, args, kwargs]
data = JSON.parse(data);
// console.log(" server->client:", data)
Evennia.emit(data[0], data[1], data[2]);
};
}
var msg = function(data) {
// send data across the wire. Make sure to json it.
// console.log("client->server:", data)
websocket.send(JSON.stringify(data));
};