mirror of https://github.com/OpenVidu/openvidu.git
Merge pull request #73 from stavros-zavrakas/fix/hardcoded-port
Fix the hardcoded portpull/88/merge
commit
2c139e88af
|
@ -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 + port + '?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true';
|
||||
this.session.connect(token)
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
|
|
Loading…
Reference in New Issue