Ability to reconnect after a connection failure

This commit is contained in:
yflory
2016-08-25 17:56:17 +02:00
parent 5a3da11c40
commit c168ce2d1c
3 changed files with 25 additions and 3 deletions

View File

@@ -224,10 +224,11 @@ define([
return {
failed: function () {
connected = false;
userListElement.textContent = '';
userListElement.textContent = 'Disconnected';
lagElement.textContent = '';
},
reconnecting: function () {
reconnecting: function (userId) {
myUserName = userId;
connected = false;
userListElement.textContent = Messages.reconnecting;
lagElement.textContent = '';