Initial getBalance of all your addresses. Socket-io that listening if your address receives btc.

Known bug: if you add new the address you can to recall socket-io. Socket-io should be listening on headerController.
This commit is contained in:
Gustavo Cortez 2014-04-17 06:43:30 -03:00
commit eaa1bc37e0
7 changed files with 54 additions and 10 deletions

View file

@ -52,7 +52,8 @@ ScopedSocket.prototype.emit = function(event, data, callback) {
angular.module('copay.socket').factory('Socket',
function($rootScope) {
var socket = io.connect('http://localhost:3001', {
var server = 'http://' + config.socket.host + ':' + config.socket.port;
var socket = io.connect(server, {
'reconnect': true,
'reconnection delay': 500,
});