正在加载视频...

视频加载失败

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 条评论

Steve Ruiz 的头像
Steve Ruiz3 年前

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)

Steve Ruiz 的头像
Steve Ruiz3 年前

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

Steve Ruiz 的头像
Steve Ruiz3 年前

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

Abhimanyu 的头像
Abhimanyu3 年前

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

Jeff Rafter 的头像
Jeff Rafter3 年前

@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?

Steve Ruiz 的头像
Steve Ruiz3 年前

@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)

Dragan Okanovic 的头像
Dragan Okanovic3 年前

@tldraw What happened to Liveblocks?

Steve Ruiz 的头像
Steve Ruiz3 年前

@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.

Mr Jake Gordon 的头像
Mr Jake Gordon3 年前

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

Steve Ruiz 的头像
Steve Ruiz3 年前

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

相关视频

This is happening in real time
1:02

Sensitive content

This is happening in real time

𝕯𝖆 𝕭𝖗𝖆𝖙 🤎

130,300 次观看 • 1 年前