1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Final socket fix

This commit is contained in:
Joe Fiorini 2015-02-23 15:09:42 -05:00
parent e353daadb7
commit a63eb24cc0

View File

@ -115,6 +115,7 @@ angular.module('SocketIO', ['AuthService', 'Utilities'])
});
self.socket.on('error', function(reason) {
var r = reason || 'connection refused by host';
console.error(reason)
$log.debug('Socket error: ' + r);
$log.error('Socket error: ' + r);
self.scope.$apply(function() {
@ -153,10 +154,10 @@ angular.module('SocketIO', ['AuthService', 'Utilities'])
checkStatus: function() {
// Check connection status
var self = this;
if (self.socket.connected) {
if (self.socket.socket.connected) {
self.scope.socketStatus = 'ok';
}
else if (self.socket.connecting || self.socket.reconnecting) {
else if (self.socket.socket.connecting || self.socket.reconnecting) {
self.scope.socketStatus = 'connecting';
}
else {