Skip to content

Commit 227561d

Browse files
ImriKochWixclaude
andcommitted
feat(actor): Storage.deleteAll for match-end room cleanup
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 43e4e53 commit 227561d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/actor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export interface Storage {
3131
get<T>(key: string): Promise<T | undefined>;
3232
put(key: string, value: unknown): Promise<void>;
3333
delete(key: string): Promise<boolean>;
34+
/** Wipe the room's entire persisted storage (match-end cleanup). Safe: a
35+
* later rejoin re-bootstraps exactly like a brand-new room. */
36+
deleteAll(): Promise<void>;
3437
}
3538

3639

0 commit comments

Comments
 (0)