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 Processing.app (p5.js) as a client, how can this be done?

Thanks so much!!

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

Hello,

There may be something in here of interest:
https://p5js.org/reference/#group-IO

:)