Realtime data transfer to the browser.
Note: Before you run this example, make sure that you run the npm install embedded into the patcher file, by clicking on the [script npm install] message.
max_sockets.maxpat
: The Max patch to run the example.
max_sockets.js
: The NodeJS script.
package.json
: The Node package file.
README.md
: This file!
/public
: The browser-facing content served up by Node.
/routes
: The Express routing functions for each endpoint.
/views
: The HTML/EJS templates used by the routing functions.
- Launch the
max_sockets.maxpat
Max patch. - (First time only...) Click on the [script npm install] message to load the required packages and libraries.
- Click on the [script start] message to start the Node process running.
- Click on the toggle to begin generating live data.
- Click on the "Open test page" message to launch a browser to the test form. The graphics will show the results of the data feed from the Max patch.