repo: janusweb action: commit revision: path_from: revision_from: 209e3c7aab86013f42b2e82899c5e6038f0d483f: path_to: revision_to:
commit 209e3c7aab86013f42b2e82899c5e6038f0d483f Author: James BaicoianuDate: Sun Oct 25 10:42:26 2020 -0700 Communicate connection status via events diff --git a/scripts/multiplayermanager.js b/scripts/multiplayermanager.js
--- a/scripts/multiplayermanager.js
+++ b/scripts/multiplayermanager.js
@@ -351,6 +351,7 @@ console.log('[MultiplayerManager] spawn remote guy', userId, roomId, room);
}
this.handleServerDisconnect = function(ev) {
console.log('[MultiplayerManager] disconnected', ev);
+ elation.events.fire({element: this, type: 'janusweb_client_disconnected', data: this.janusweb.userId});
if (this.janusweb.chat) {
this.janusweb.chat.addmessage({userId: ' ! ', message: 'Disconnected'});
}
-----END OF PAGE-----