Commit 252ad1a6 authored by Vladimir Baranov's avatar Vladimir Baranov

rref #5392. Fix messages broadcasting delay

parent f2d3dea0
...@@ -147,7 +147,9 @@ angular.module('ulakbus') ...@@ -147,7 +147,9 @@ angular.module('ulakbus')
// this way it broadcasts to relevant listener // this way it broadcasts to relevant listener
// i group messages and notifications into 2 groups // i group messages and notifications into 2 groups
// necessary actions will taken where it is listened // necessary actions will taken where it is listened
$rootScope.$broadcast(type[msg_data["type"]], msg_data); $timeout(function(){
$rootScope.$broadcast(type[msg_data["type"]], msg_data);
});
}, },
dashboard: function () { dashboard: function () {
// dashboard consists of menu and user specifications // dashboard consists of menu and user specifications
...@@ -255,4 +257,4 @@ angular.module('ulakbus') ...@@ -255,4 +257,4 @@ angular.module('ulakbus')
}; };
return wsOps; return wsOps;
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment