One app sending keystrokes to another?

I need to write a p5js app that can communicate with another p5js app. It could be a copy of itself running somewhere else, or two different apps. Direct peer-to-peer would be awesome, but probably easiest to go through the server? (not sure) Users could start at the same, or different, web page(s), then have one app send simple keystrokes to the other. Two-way would be great, but one-way is sufficient.
Cray?
Thanks for any help/suggestions/starting points…
Mike

1 Like

Check out this tutorial which should have all the backend you need, then you can choose to send keystrokes instead of couples of mouse coordinates.

1 Like

Superb leo.nerd! Thanks a million, it was a huge help. I ended up using PeerJS, but it was your tip that first got things running for me.

1 Like