Declare socketConfig variable

Fixes `ReferenceError: socketConfig is not defined` when using Redis pubsub