Thank you so much for posting this! I watched through the same tutorial and I got stuck as the canvas would not appear. I copied and pasted the source code from the server.js and sketch.js and now it works.
When I try and comment out “socket = io.connect(‘http://localhost:3000’);” from the sketch.js file the canvas disappears from the localhost-website. I’m just beginning to learn about p5.js, but this socket thing seem to be an important ingredient, yet it was not even in Daniels tutorial. But then again, things might have changed since 2016.
Thanks again!