Skip to content

Commit

Permalink
OpenVidu dashboard dynamic port selection
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Jan 16, 2018
1 parent 7ce9ceb commit 16f24f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
}
Expand Down

0 comments on commit 16f24f0

Please sign in to comment.