Communication between p5js and processing

Thanks for the response, and sorry it’s not clear (it’s one of those projects that makes sense in your head but when you try to explain it…)

I think I have websockets working, but basically it needs to be able to send basic strings so that each side can get a specific view state ready. It’s an ipad open on the p5 client page, with a UI that’s just buttons. When the button is pressed (ipad), it tells processing (a monitor) to go get a new view ready, with a callback that it’s ready – then the ipad updates its state.

So, it’s seemingly easy and simple… but it hasn’t been. Been looking into spacebrew but seems perhaps overkill…