I have var redis = require('socket.io-redis');io.adapter(redis({ host: 'hhhhh', port: xxxx})); which is connecting normally and when i use var emiter = require('socket.io-emitter')({ host: 'hhhhh', port: xxxx }); this got timout error. Both those are in the same file app.js.
var redis = require('socket.io-redis');
var pub = redis.createClient("port", "host", {auth_pass: "optionalPassword"});
var emitter = require('socket.io-emitter')(pub);
I have
var redis = require('socket.io-redis');io.adapter(redis({ host: 'hhhhh', port: xxxx}));
which is connecting normally and when i usevar emiter = require('socket.io-emitter')({ host: 'hhhhh', port: xxxx });
this got timout error. Both those are in the same fileapp.js
.