mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: Session.onRecoveredConnection cleaned up
parent
017e79fd8a
commit
88ab505763
|
@ -869,22 +869,10 @@ export class Session implements EventDispatcher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
onRecoveredConnection(): void {
|
onRecoveredConnection(): void {
|
||||||
|
|
||||||
/*if (!this.connection) {
|
|
||||||
|
|
||||||
console.warn('Not connected to session: if you are not debugging, this is probably a certificate error');
|
|
||||||
|
|
||||||
const url = 'https://' + this.openvidu.getWsUri().split('wss://')[1].split('/openvidu')[0];
|
|
||||||
if (window.confirm('If you are not debugging, this is probably a certificate error at \"' + url + '\"\n\nClick OK to navigate and accept it')) {
|
|
||||||
location.assign(url + '/accept-certificate');
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
console.warn('Recovered connection in Session ' + this.sessionId);
|
console.warn('Recovered connection in Session ' + this.sessionId);
|
||||||
this.ee.emitEvent('connectionRecovered', []);
|
this.ee.emitEvent('connectionRecovered', []);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue