mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-07 10:49:00 +00:00
cosmetics
This commit is contained in:
parent
8b9cffb5ad
commit
073f8860ee
@ -81,7 +81,3 @@ class ReportServer(object):
|
||||
def reload(self):
|
||||
for connection in Client.CONNECTIONS:
|
||||
connection.emit('reload')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
@ -85,12 +85,13 @@ app.controller "TankReport", ($scope, $element) ->
|
||||
'reconnection limit' : 1000
|
||||
'max reconnection attempts' : 'Infinity'
|
||||
)
|
||||
setInterval((
|
||||
() ->conn.emit('heartbeat')
|
||||
), 3000)
|
||||
conn.on 'connect', () =>
|
||||
console.log("Connection opened...")
|
||||
$scope.status = "Connected"
|
||||
setInterval((
|
||||
() ->conn.emit('heartbeat')
|
||||
), 3000)
|
||||
|
||||
$scope.$apply()
|
||||
|
||||
conn.on 'disconnect', () =>
|
||||
|
@ -154,13 +154,13 @@
|
||||
'reconnection limit': 1000,
|
||||
'max reconnection attempts': 'Infinity'
|
||||
});
|
||||
setInterval((function() {
|
||||
return conn.emit('heartbeat');
|
||||
}), 3000);
|
||||
conn.on('connect', (function(_this) {
|
||||
return function() {
|
||||
console.log("Connection opened...");
|
||||
$scope.status = "Connected";
|
||||
setInterval((function() {
|
||||
return conn.emit('heartbeat');
|
||||
}), 3000);
|
||||
return $scope.$apply();
|
||||
};
|
||||
})(this));
|
||||
|
Loading…
Reference in New Issue
Block a user