Changing the ARDI Server

The ARDI server used by the template is hard-coded in index.js.

At the top of the file, you'll find…

//ARDI Server Address
var ardiserver = "https://demo.optrix.com.au/s/long";
var baseardiserver = "https://demo.optrix.com.au"

Change the server name to whatever server suits your application.

Dynamic Server Choices

Hard-coding the path is only one option.

You could also get the server name from…

  • A configuration file,
  • An environment variable,
  • A popup window that asks the user for a URL

But this functionality isn't included in the template.