use socket.io in production mode when possible