title: Redis subscribe timeout
body: <p>How can i set timer function for Redis sub, so when client connect and message is not received from pubblisher in 200ms socket emit an event?</p>
  
  <p>This is what i have now:</p>
  
  <pre><code>io.on('connection', function(socket){
  
      const sub = redis.createClient();
      sub.subscribe("data");
  
      sub.on("message", function(channel, message) {
        io.emit("data", JSON.parse(message));
      });
  
      sub.on("error", function(err){
        console.log("Error" + err);
      });
  
      socket.on("disconnect", function(){
        sub.removeListerner('message', function(){
          io.emit("disconnected");
        })
      });
  
  });
  </code></pre>