|
|
|
@ -26,7 +26,7 @@ const WS_IDLE_TIMEOUT = 90000; |
|
|
|
const MAX_PUBLISH_COMMANDS = 10; |
|
|
|
|
|
|
|
/*@ngInject*/ |
|
|
|
function TelemetryWebsocketService($rootScope, $websocket, $timeout, $window, $mdUtil, toast, types, userService) { |
|
|
|
function TelemetryWebsocketService($rootScope, $websocket, $timeout, $window, $mdUtil, $log, toast, types, userService) { |
|
|
|
|
|
|
|
var isOpening = false, |
|
|
|
isOpened = false, |
|
|
|
@ -113,7 +113,8 @@ function TelemetryWebsocketService($rootScope, $websocket, $timeout, $window, $m |
|
|
|
|
|
|
|
function onError (errorEvent) { |
|
|
|
if (errorEvent) { |
|
|
|
showWsError(0, errorEvent); |
|
|
|
//showWsError(0, errorEvent);
|
|
|
|
$log.warn('WebSocket error event', errorEvent); |
|
|
|
} |
|
|
|
isOpening = false; |
|
|
|
} |
|
|
|
|