Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
HSC-1010: support WebSocket over TLS (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
julbra committed Sep 20, 2016
1 parent c3cfef7 commit 1b86f04
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
*/
function ApplicationLogStreamController(base64, modelManager, $stateParams, $location, $log) {
this.model = modelManager.retrieve('cloud-foundry.model.application');
this.websocketUrl = 'ws://' + $location.host() + '/pp/v1/' +

var protocol = $location.protocol() === 'https' ? 'wss' : 'ws';
this.websocketUrl = protocol + '://' + $location.host() + ':' + $location.port() + '/pp/v1/' +
$stateParams.cnsiGuid + '/apps/' + $stateParams.guid + '/stream';

this.autoScrollOn = true; // auto-scroll by default
Expand Down

0 comments on commit 1b86f04

Please sign in to comment.