[rooms] roles

This commit is contained in:
Devin Zuczek
2026-09-14 13:05:08 -04:00
parent 7add875223
commit 4b4db04069
20 changed files with 1516 additions and 181 deletions
+6
View File
@@ -5,6 +5,12 @@ import type { NotificationsHub } from './notifications-hub'
export type Env = SharedHonoEnv & {
/** Durable Object hosting the SignalR notifications hub. */
RECFLARE_NOTIFICATIONS_HUB: DurableObjectNamespace<NotificationsHub>
/**
* The shared `recflare` D1 database. Used only for the notification store — a coach
* message to one player is written there before it is pushed, so it survives the hub's
* best-effort queue. The hub DO itself keeps its own state in its own SQLite.
*/
DB: D1Database
/**
* HS256 JWT signing key, read with `await env.JWT_SECRET.get()`; all workers
* bind the same store so tokens signed by `auth` verify here. Used to gate the