tldraw/apps
David Sheldrick 4a3d9d407d
[bemo bae] Spike on tlsync public API improvement (#4002)
This PR replaces the extendable TLServer class with an instantiatable
wrapper for the TLSyncRoom called TLSocketRoom.

The goal is to provide an API where you pretty much just

1. create a room from some (optional) snapshot
2. pass websockets into it when they connect

And then lifecycle stuff and persistence stuff is left to the consumer,
since that all seems to be much more context dependent.

One thing remaining here is to work on observability. We had a slightly
messy situation regarding logging and error handling and analytics and I
want to clean that all up.

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [ ] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [x] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [ ] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [x] `galaxy brain` — Architectural changes
- [ ] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know


### Test Plan

1. Add a step-by-step description of how to test your PR here.
4.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Add a brief release note for your PR here.
2024-06-26 14:07:36 +00:00
..
apps-script google meet: add hardware whiteboard integration (#3765) 2024-05-20 14:52:05 +00:00
docs bookmarks: account for relative urls more robustly (#4022) 2024-06-26 11:36:57 +00:00
dotcom bookmarks: account for relative urls more robustly (#4022) 2024-06-26 11:36:57 +00:00
dotcom-asset-upload [bemo bae] Spike on tlsync public API improvement (#4002) 2024-06-26 14:07:36 +00:00
dotcom-bookmark-extractor bookmarks: account for relative urls more robustly (#4022) 2024-06-26 11:36:57 +00:00
dotcom-worker [bemo bae] Spike on tlsync public API improvement (#4002) 2024-06-26 14:07:36 +00:00
examples Fix multiple editor instances issue (#4001) 2024-06-24 12:24:24 +00:00
health-worker [bemo bae] Spike on tlsync public API improvement (#4002) 2024-06-26 14:07:36 +00:00
huppy dx: PR labels re-revamp (#4016) 2024-06-26 11:06:15 +00:00
vscode bookmarks: account for relative urls more robustly (#4022) 2024-06-26 11:36:57 +00:00