genekogan / p5js-osc

OSC for p5.js with examples
216 stars 39 forks source link

socket.emit() error #14

Open stephanschulz opened 3 years ago

stephanschulz commented 3 years ago

Thanks for making this example.

I am trying to send position info from p5js to processing with socket.emit('message', ['/pos', xR,yR]); but get an error:

Screen Shot 2021-02-18 at 9 18 30 AM

Do you have any advice?

stephanschulz commented 3 years ago

I made some changes to bridge.js thanks to the help from this forum post

https://github.com/stephanschulz/p5js-osc/blob/master/bridge.js#L24

and edited the P5 and p5-basic example. If this is acceptable I can send a Pull Request.