|
@ -155,7 +155,7 @@ Insight.prototype.estimateFee = function(nbBlocks, cb) { |
|
|
Insight.prototype.initSocket = function() { |
|
|
Insight.prototype.initSocket = function() { |
|
|
|
|
|
|
|
|
// sockets always use the first server on the pull
|
|
|
// sockets always use the first server on the pull
|
|
|
var socket = io.connect(this.hosts[0], { |
|
|
var socket = io.connect(_.first([].concat(this.hosts)), { |
|
|
'reconnection': true, |
|
|
'reconnection': true, |
|
|
}); |
|
|
}); |
|
|
return socket; |
|
|
return socket; |
|
|