Live Stream #30: Creating Real-Time Shared Canvas with WebSockets

[ad_1]
Live from sfpc.io!
In this video, using p5.js and WebSockets, I look at how to create a real-time collaborative drawing canvas between multiple users through client-server programming. Topics covered: Node.js, Express.js, Socket.io, p5.js.
Plus the beginning of a new segment: The 10 Minute Coding Challenge!

12:40 – Starfield Coding Challenge in Processing
46:57 – Presentation of today’s project
51:00 – How to install and use Node.js
1:04:59 – Add web framework Express.js to host files
1:24:29 – Install Socket.io to establish socket connections with server
1:41:38 – Connecting clients to server to share drawing canvas
1:53:10 – Conclusion

Coding Challenge Source Code:

Processing:
p5.js:

WebSocket/p5.js Project Source Code:

Contact:

Node:
Socket.io:
Express:
p5.js:

Learn JavaScript basics:

More about data and APIs:

Help us caption & translate this video!


Posted

in

by

Tags: