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
722 stars 121 forks source link

Update index.js #73

Closed Raju-t closed 6 years ago

Raju-t commented 6 years ago

Add option to pass password in arguments list.

darrachequesne commented 6 years ago

Please use the Emitter(client[, opts]) constructor to provide your own Redis client (since we won't update the emitter for each new parameter).

Example:

const redisClient = require("redis").createClient({ ... });
const io = require('socket.io-emitter')(redisClient);
Raju-t commented 6 years ago

Thankyou. It worked.