OpenVidu dashboard dynamic port selection

pull/30/head
pabloFuente 2018-01-16 17:01:02 +01:00
parent 7ce9ceb530
commit 16f24f05de
1 changed files with 2 additions and 1 deletions

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);
}
});
}