8000 GitHub - TimelesClock/tldraw-sockets-example: A very basic way of implementing multiplayer in tldraw.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

TimelesClock/tldraw-sockets-example

Repository files navigation

This repository shows how you might use tldraw together with the yjs library. It also makes a good example for how to use tldraw with other backend services!

This branch shows a partykit integration.

For production:

  • First create a .env file with:
VITE_PRODUCTION_URL=https://tldraw-partykit-yjs-example.YOUR_USERNAME.partykit.dev

...replacing YOUR_USERNAME with your partykit username.

  • Then run yarn deploy

If it's your first time using partykit, you may need to try deploying first in order to get your username. While the instructions above should work, the real way to do this is to point the VITE_PRODUCTION_URL at whatever URL you're deploying the website to.

About

A very basic way of implementing multiplayer in tldraw.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0