Not connecting to nodejs server if it's not enabled