1
0
Fork 0

[client] Bugfix peer update system

This commit is contained in:
Starbeamrainbowlabs 2017-02-19 12:07:42 +00:00
parent cfdb1c8309
commit 1db1788626
1 changed files with 1 additions and 7 deletions

View File

@ -60,8 +60,6 @@ class BoardWindow extends EventEmitter
// Make the canvas track the window size // Make the canvas track the window size
this.trackWindowSize(); this.trackWindowSize();
this.on("OtherClientUpdate", this.)
} }
/** /**
@ -167,7 +165,7 @@ class BoardWindow extends EventEmitter
handlePeerUpdates(message) { handlePeerUpdates(message) {
// Update our knowledge about other clients // Update our knowledge about other clients
for (let otherClient of message) { for (let otherClient of message.ClientStates) {
// If this client is new, emit an event about it // If this client is new, emit an event about it
if(!this.otherClients.has(otherClient.Id)) if(!this.otherClients.has(otherClient.Id))
this.emit("OtherClientConnect", otherClient); this.emit("OtherClientConnect", otherClient);
@ -177,10 +175,6 @@ class BoardWindow extends EventEmitter
this.otherClients.set(otherClient.Id, otherClient); this.otherClients.set(otherClient.Id, otherClient);
} }
} }
handleOtherClientUpdate(otherClientData) {
}
} }
export default BoardWindow; export default BoardWindow;