diff --git a/web/plates/js/status.js b/web/plates/js/status.js index a10b832c..7e50eaff 100755 --- a/web/plates/js/status.js +++ b/web/plates/js/status.js @@ -11,8 +11,8 @@ function StatusCtrl($rootScope, $scope, $state, $http) { return; // we are getting called once after clicking away from the status page if (($scope.socket === undefined) || ($scope.socket === null)) { - // socket = new WebSocket('ws://' + window.location.hostname + '/control'); - socket = new WebSocket('ws://' + URL_HOST_BASE + '/control'); + // socket = new WebSocket('ws://' + window.location.hostname + '/status'); + socket = new WebSocket('ws://' + URL_HOST_BASE + '/status'); $scope.socket = socket; // store socket in scope for enter/exit usage } @@ -104,4 +104,4 @@ function StatusCtrl($rootScope, $scope, $state, $http) { // Status Controller tasks setHardwareVisibility(); connect($scope); // connect - opens a socket and listens for messages -}; \ No newline at end of file +};