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:
parent
864156ed4f
commit
eaa1bc37e0
7 changed files with 54 additions and 10 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue