We provide templates for OSC communication within several server paradigms. In the Ajax Demo
template, we use a PHP file nexusOSCRelay.php to forward data from your interface to a specified IP and port (default IP 127.0.0.1 and port 7475).
This template uses nx.sendsTo("ajax") to tell all UI elements to forward data using AJAX. You can override individual elements' paths by setting their .sendsTo() property directly.
To specify the file path for the PHP script Nexus should use, use nx.setAjaxPath(), for example nx.setAjaxPath("lib/nexusOSCRelay.php")
OSC naming conventions
This strategy relies on the PHP files in our Ajax Demo
and will not work without it unless you provide your own script for the AJAX to execute!