正在加载视频...
视频加载失败
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,441 次观看 • 3 年前 •via X (Twitter)
10 条评论

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 ✍️
相关视频
Sensitive content
This is happening in real time
𝕯𝖆 𝕭𝖗𝖆𝖙 🤎
130,300 次观看 • 1 年前
