kopia lustrzana https://github.com/cyoung/stratux
Rename /control to /status (JS).
rodzic
c842cbe595
commit
6ba4009f1b
|
|
@ -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
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue