Removes online/offline events

This commit is contained in:
Gustavo Maximiliano Cortez 2015-06-26 11:55:41 -03:00
commit d02c1a7f11
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 10 additions and 49 deletions

View file

@ -62,20 +62,18 @@ angular.module('copayApp.services')
client.removeAllListeners();
if (!nodeWebkit.isDefined() && !isCordova) {
client.on('reconnect', function() {
if (root.focusedClient.credentials.walletId == client.credentials.walletId) {
$rootScope.$emit('Local/Online');
}
});
client.on('reconnect', function() {
if (root.focusedClient.credentials.walletId == client.credentials.walletId) {
$log.debug('### Online');
}
});
client.on('reconnecting', function() {
if (root.focusedClient.credentials.walletId == client.credentials.walletId) {
$rootScope.$emit('Local/Offline');
}
});
}
client.on('reconnecting', function() {
if (root.focusedClient.credentials.walletId == client.credentials.walletId) {
$log.debug('### Offline');
}
});
client.on('notification', function(n) {
$log.debug('BWC Notification:', n);