1.5 KiB
tldraw sync, custom transport example
This is a simple example of a backend for tldraw sync hosted on Node, with a custom socket.io transport instead of our default websocket-based one.
Run yarn dev in this folder to start the server + client.
Room data is automatically persisted to SQLite databases in the .rooms directory using SQLiteSyncStorage.
For a production-ready example specific to Cloudflare, see /templates/sync-cloudflare.
License
This project is provided under the MIT license found here. The tldraw SDK is provided under the tldraw license.
Trademarks
Copyright (c) 2024-present tldraw Inc. The tldraw name and logo are trademarks of tldraw. Please see our trademark guidelines for info on acceptable usage.
Distributions
You can find tldraw on npm here.
Contribution
Found a bug? Please submit an issue.
Community
Have questions, comments or feedback? Join our discord. For the latest news and release notes, visit tldraw.dev.
Contact
Find us on Twitter/X at @tldraw.