Communication between p5js and processing

I think you need sockets. No experience with sockets in p5js. Did you check this page: https://github.com/processing/p5.js/wiki/p5.js,-node.js,-socket.io

To clarify, your computer is the host running node.js and Processing, right? The iPad is connecting to it. Everything is happening within the same network, as within the same wifi network?

Kf