Browse Source

Merge pull request #492 from isocolsky/fix/insight-socket

Fix socket connection to Insight for single host config
activeAddress
Matias Alejo Garcia 9 years ago
parent
commit
c0f291fcbd
  1. 2
      lib/blockchainexplorers/insight.js

2
lib/blockchainexplorers/insight.js

@ -155,7 +155,7 @@ Insight.prototype.estimateFee = function(nbBlocks, cb) {
Insight.prototype.initSocket = function() {
// 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,
});
return socket;

Loading…
Cancel
Save