Declare socketConfig variable

Fixes `ReferenceError: socketConfig is not defined` when using Redis pubsub
Merge pull request #611 from Cacteye/patch-1

Declare socketConfig variable