From 02e3d471d909b4c091601c7404de158dab58130b Mon Sep 17 00:00:00 2001 From: Stavros Zavrakas Date: Fri, 15 Jun 2018 10:36:34 +0100 Subject: [PATCH] fix the hardcoded port --- .../layouts/layout-best-fit/layout-best-fit.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts b/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts index 79816afb..a048ce63 100644 --- a/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts +++ b/openvidu-server/src/angular/frontend/src/app/components/layouts/layout-best-fit/layout-best-fit.component.ts @@ -90,7 +90,8 @@ export class LayoutBestFitComponent implements OnInit, OnDestroy { this.updateLayout(changeFixedRatio); }); - const token = 'wss://' + location.hostname + ':4443?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true'; + const port = !!location.port ? (':' + location.port) : ''; + const token = 'wss://' + location.hostname + location.port + '?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true'; this.session.connect(token) .catch(error => { console.error(error);