fix websocket reconnect on login

This commit is contained in:
HF 2020-04-28 08:39:05 +02:00
parent 77d3a6c417
commit 9f7495a336

View File

@ -95,6 +95,7 @@ class ProtocolClient extends EventEmitter {
setName(name) {
if (this.isConnected && this.name !== name) {
console.log('Name change requieres WebSocket restart');
this.name = name;
this.reconnect();
}
}