How to reuse redis connection in socket.io?
Actually you are only creating a new redis client for every connection if you are instantiating the client on the “connection” event. What I prefer to do when creating a chat system is to create three redis clients. One for publishing, subscribing, and one for storing values into redis. for example: var socketio = require(“socket.io”) … Read more