svelte-adapter-uws-extensions 0.1.4 → 0.1.6
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/redis/cursor.d.ts +9 -0
- package/redis/cursor.js +446 -365
- package/redis/groups.js +412 -394
- package/redis/presence.js +766 -701
- package/redis/pubsub.js +153 -153
- package/redis/ratelimit.js +225 -223
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-adapter-uws-extensions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Redis and Postgres extensions for svelte-adapter-uws - distributed pub/sub, replay buffers, presence tracking, rate limiting, groups, and DB change notifications",
|
|
5
5
|
"author": "Kevin Radziszewski",
|
|
6
6
|
"license": "MIT",
|
package/redis/cursor.d.ts
CHANGED
|
@@ -9,6 +9,15 @@ export interface RedisCursorOptions {
|
|
|
9
9
|
*/
|
|
10
10
|
throttle?: number;
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Minimum ms between aggregate broadcasts per topic, across all
|
|
14
|
+
* connections. Caps total Redis writes regardless of connection count.
|
|
15
|
+
* Set to ~16 (60 broadcasts/sec) to prevent Redis saturation under
|
|
16
|
+
* high concurrency. 0 disables the aggregate throttle.
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
topicThrottle?: number;
|
|
20
|
+
|
|
12
21
|
/**
|
|
13
22
|
* Extract user-identifying data from userData.
|
|
14
23
|
* Broadcast alongside cursor data so other clients know who the cursor belongs to.
|