Adding generic PubSub config extracted away from Socket.IO