mirror of https://github.com/OpenVidu/openvidu.git
OpenVidu dashboard dynamic port selection
parent
7ce9ceb530
commit
16f24f05de
|
@ -73,7 +73,8 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe(secret => {
|
dialogRef.afterClosed().subscribe(secret => {
|
||||||
if (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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue