});
break;
case "connect":
+ console.log("connect " + data.from + " " + !!this.people[data.from]);
if (!this.people[data.from]) {
this.people[data.from] = { focus: true };
this.newConnect[data.from] = true; //for self multi-connects tests
}
break;
case "disconnect":
+ console.log("disconnect " + data.from);
this.$delete(this.people, data.from);
break;
case "getfocus": {
+ console.log("get focus " + data.from + " " + !!this.people[data.from]);
let player = this.people[data.from];
if (!!player) {
player.focus = true;
break;
}
case "losefocus": {
+ console.log("lose focus " + data.from + " " + !!this.people[data.from]);
let player = this.people[data.from];
if (!!player) {
player.focus = false;