From 16f24f05deb883ee4c8d4308758ebf955dd96c8a Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Tue, 16 Jan 2018 17:01:02 +0100 Subject: [PATCH] OpenVidu dashboard dynamic port selection --- .../src/app/components/dashboard/dashboard.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openvidu-server/src/angular/frontend/src/app/components/dashboard/dashboard.component.ts b/openvidu-server/src/angular/frontend/src/app/components/dashboard/dashboard.component.ts index 61cd5c23..ce019833 100644 --- a/openvidu-server/src/angular/frontend/src/app/components/dashboard/dashboard.component.ts +++ b/openvidu-server/src/angular/frontend/src/app/components/dashboard/dashboard.component.ts @@ -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); } }); }