title: Pub/Sub Redis - Communication between NodeJS servers
body: <p>I am planning to use Redis pub/sub feature on my two NodeJS servers what needs to communicate with each other.</p>
  
  <p>Lets have servers A and B:</p>
  
  <p>I will make A as publisher "a" and B as publisher "b", then A will subscribe to "b" and B will subscribe to "a".</p>
  
  <p>But there is problem. What if A disconnect? How will B recognize it? Will it fire some error? If not, how to achieve it?</p>