@takosjp/yurucommu-core 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/api/package.json +1 -1
- package/packages/api/src/index.ts +1 -0
- package/packages/api/src/lib/rtc-client.ts +1 -3
- package/packages/api/src/types/call.ts +2 -10
- package/packages/api/src/types/index.ts +3 -0
- package/packages/api/src/types/realtime.ts +139 -0
- package/src/backend/index.ts +11 -0
- package/src/backend/lib/delivery/queue.ts +4 -0
- package/src/backend/lib/unread-counts.ts +63 -2
- package/src/backend/public.ts +3 -0
- package/src/backend/routes/communities/messages.ts +53 -17
- package/src/backend/routes/dm/messages.ts +47 -7
- package/src/backend/routes/dm/read-archive.ts +27 -0
- package/src/backend/routes/dm/typing.ts +16 -0
- package/src/backend/routes/notifications.ts +25 -0
- package/src/backend/routes/realtime/index.ts +67 -0
- package/src/backend/routes/rtc/index.ts +5 -1
- package/src/backend/runtime/call-hub-core.ts +13 -3
- package/src/backend/runtime/realtime-hub.ts +257 -0
- package/src/backend/runtime/realtime-stream-do.ts +323 -0
- package/src/backend/types.ts +4 -0
package/src/backend/types.ts
CHANGED
|
@@ -147,6 +147,10 @@ export type Env = {
|
|
|
147
147
|
// untouched (it is not one of DB/MEDIA/KV/ASSETS). Optional: when unbound the
|
|
148
148
|
// call routes 503 and the rest of the app serves normally.
|
|
149
149
|
CALL_SIGNALING?: DurableObjectNamespace;
|
|
150
|
+
// Per-user realtime event stream (talk/typing/read/notification/unread push).
|
|
151
|
+
// Same pass-through; optional: when unbound the realtime routes answer 503
|
|
152
|
+
// and clients fall back to their low-frequency polling loops.
|
|
153
|
+
REALTIME_STREAM?: DurableObjectNamespace;
|
|
150
154
|
} & EnvVars;
|
|
151
155
|
|
|
152
156
|
export type Variables = {
|