Video yükleniyor...
Video Yüklenemedi
permit me me to flex: this is tldraw on two devices syncing in real time. This is NOT local dev! sync is happening via a websockets server hosted on Cloudflare workers
291,420 görüntüleme • 3 yıl önce •via X (Twitter)
10 Yorum

This kind of low latency sync is only possible due to the work of @djsheldrick, who built the sync engine, and @threepointone, who set up the workers. (see @partykit_io for Sunil’s continued work on that)

Here’s a shared project to try out / beat up on:

Fun fact! This is the most popular room we've ever had and we discovered a pretty big issue (with leftover user data) so this specific room will perform worse than all other rooms. 🫠 build in public yall

@tldraw @Cloudflare Did something similar while building scribble. Sent coordinates of mouse events over the network using websockets.

@tldraw @Cloudflare This is awesome! I'm curious if you considered something like yjs under the hood with the ability to jump to WebRTC for local peering when collaborators are in the same room / local network?

@tldraw @Cloudflare The library itself can in theory plug into any backend, however for the moment we're building around our own arch (which involves a server)

@tldraw What happened to Liveblocks?

@tldraw liveblocks was great! But I wanted something that was quicker and better integrated with tldraw’s client state, and which we could license out / sell to folks who wanted to self host it.

@tldraw @Cloudflare Flexing right back at you with This is also NOT local dev. Sync happening via my websocket server.

@tldraw @Cloudflare Looks good! Use my perfect-freehand if you’re not already, it’s MIT and will handle stylus pressure ✍️
