refresh also now clears messages from client
This commit is contained in:
parent
d0025b4221
commit
818cb1afc6
1 changed files with 4 additions and 0 deletions
|
@ -240,6 +240,10 @@ const app = new Vue({
|
|||
});
|
||||
this.gateway.socket.on('refreshClient', (e) => {
|
||||
console.log('[*] [gateway] Gateway requested refresh', e);
|
||||
this.gateway.disconnect();
|
||||
this.messages = {};
|
||||
this.userLists = {};
|
||||
this.message.typed = '';
|
||||
if (e.reason === 'exit') {
|
||||
this.showApp = false;
|
||||
this.okNotification('The server has exited. Sit tight!');
|
||||
|
|
Reference in a new issue