Wondering if there’s a good solution for back and forth communication between a p5.js server running on node and a processing sketch that people think work pretty flawlessly.
To clarify, your server is running node. P5js does not have any server features. You can use it in the backend for sure, but it is not doing the serving part.
Can you provide more details of what you want to do? Do you want to send a single notification? Multiple notifications? Do you want to have an open connection (you mention using sockets). What type of data are you transferring between your P3 java sketch and your server app? Images? One? or a stream, like a video? Are you doing this in your local computer but then you are planing to migrate it to a server later on?
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…
Yeah I think you’re right. I’ll dive deeper with it since I think it’s probably that I screwed something up. And yes, the computer is running both the server and processing. the iPad is just navigating to the local ip address, and port.
Hello! I’ve the same problem: are you find a solution with sockets? My computer is running both too, the server and processing, but i don’t have access to the server from Processing. Any information welcome, thanks!