added disconnection dialog to inform user

This commit is contained in:
bluesaxman 2020-09-30 17:10:01 +00:00
parent bb031c6b28
commit d479411845

View File

@ -190,6 +190,9 @@ function startGameSession() {
gameSession.onconnect = function () {};
gameSession.onclose = function (event) {
console.log(event);
popupDialog("connection_error","Connection Error!!!",false,messageDialog,"The server connection was closed!",function () {
window.location.search = ""; //reload page
});
};
}