OpenVidu dashboard dynamic port selection

This commit is contained in:
pabloFuente 2018-01-16 17:01:02 +01:00
parent 7ce9ceb530
commit 16f24f05de

View File

@ -73,7 +73,8 @@ export class DashboardComponent implements OnInit, OnDestroy {
dialogRef.afterClosed().subscribe(secret => {
if (secret) {
this.connectToSession('wss://' + location.hostname + ':8443/testSession?secret=' + secret);
const port = (location.port) ? location.port : '8443';
this.connectToSession('wss://' + location.hostname + ':' + port + '/testSession?secret=' + secret);
}
});
}