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

Added unref option for redis client #69

Closed josser closed 6 years ago

darrachequesne commented 6 years ago

As suggested in https://github.com/socketio/socket.io-emitter/issues/68, please rather use:

const redisClient = createRedisClient();
const io = require('socket.io-emitter')(redisClient);

redisClient.unref();