socketio / socket.io-redis-emitter

The Socket.IO Redis emitter, allowing to communicate with a group of Socket.IO servers from another Node.js process.
https://socket.io/docs/v4/redis-adapter/
MIT License
721 stars 121 forks source link

Connection timeout #29

Closed CrackerakiUA closed 7 years ago

CrackerakiUA commented 8 years ago

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.

mavrick commented 8 years ago

Try this:

var redis = require('socket.io-redis');
var pub = redis.createClient("port", "host", {auth_pass: "optionalPassword"});
var emitter = require('socket.io-emitter')(pub);
CrackerakiUA commented 8 years ago

ETIMEDOUT