Draw with your friends! Powered by PubNub, our real-time collaboration demo demonstrates a simple drawing application that allows for multiple users to draw at the same time on a canvas.
Publish: Update users in real-time with mouse positions, drawing, and name updates.
Subscribe: Listen for and view other mouse positions, drawing, and name updates in real-time.
Presence: Get currently present users and listen to new presence events. Generate new drawing pointers that track other user mouse positions and names.
Canvas: Use the Canvas element to draw 2D lines.