Rename /control to /status (JS).

pull/73/head
Christopher Young 2015-10-01 16:21:41 -04:00
rodzic c842cbe595
commit 6ba4009f1b
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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
};
};