From 46b54394ad99e5ed5fe6be033b78555adec1d252 Mon Sep 17 00:00:00 2001 From: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com> Date: Fri, 18 Oct 2024 21:58:29 -0400 Subject: [PATCH] remove old chat rooms --- worker/TldrawDurableObject.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/TldrawDurableObject.ts b/worker/TldrawDurableObject.ts index b5e0274..8c59955 100644 --- a/worker/TldrawDurableObject.ts +++ b/worker/TldrawDurableObject.ts @@ -36,6 +36,7 @@ export class TldrawDurableObject { private readonly ctx: DurableObjectState, env: Environment ) { + console.log("hello from durable object") this.r2 = env.TLDRAW_BUCKET ctx.blockConcurrencyWhile(async () => { @@ -99,7 +100,7 @@ export class TldrawDurableObject { const initialSnapshot = roomFromBucket ? ((await roomFromBucket.json()) as RoomSnapshot) : undefined - + console.log("room data", roomFromBucket) // create a new TLSocketRoom. This handles all the sync protocol & websocket connections. // it's up to us to persist the room state to R2 when needed though. return new TLSocketRoom({