Is possible use Processing library (ex. Network Library) on p5.js?

Hello everybody,
I want do the example of the Network Library of Processing “Shared drawing canvas” using my MAC with the Processing code as a server and my IPad with (p5.js) as a client, how can this be done?

Thanks so much!!

P.S. the code is this Network / (example 2)


There may be something in here of interest: