Is there any way to test the health of a RedisClient connection?

I’m having problems with a socket.io server that’s using Redis pub/sub clients to manage sockets. If Redis crashes then the whole system needs to be restarted to get the Redis interactions working again.

How can I check to see that Redis is ready and available before allowing new socket connections to resolve anything in my ‘connect’ functionality?