Using Node.js to call function in website script through Max
I have been experimenting with setting up a website with [node.script] and sending messages to Max from that website. What I am now trying is to send something to the website from Max. More specifically, calling functions in a p5.js sketch on a website that is connected to Max, through Max.
Are there any examples of a way to do this?
I have some comprehensive example both use n4m and socket/osc, from max to p5js. https://github.com/avantcontra/osc-websocket-example