@persistica/flux-mesh 0.0.33 → 0.0.35
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
CHANGED
|
@@ -10,6 +10,7 @@ export declare class GlobalClientManager {
|
|
|
10
10
|
private readonly processAddress;
|
|
11
11
|
private readonly networkAgentRedisService;
|
|
12
12
|
private readonly networkAuthorityRedisService;
|
|
13
|
+
private readonly networkChannelService;
|
|
13
14
|
constructor(_redisConnection: RedisConnection);
|
|
14
15
|
/**
|
|
15
16
|
* Sends a global message to kick a client.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TSubscription_S } from '@flux/shared/types';
|
|
2
2
|
export declare const resolveSubscriptionTypeOrDefault: (subscriptionType?: unknown) => TSubscription_S;
|
|
3
3
|
export declare const readSubscriptionTypeFromClaim: (claim?: unknown) => TSubscription_S | undefined;
|
|
4
4
|
export declare const canChannelHaveMoreMembers: (memberCount: number, subscriptionType?: TSubscription_S) => boolean;
|
package/src/main.d.ts
CHANGED
|
@@ -16,6 +16,11 @@ export declare class FluxMeshServer {
|
|
|
16
16
|
private readonly networkAgentService;
|
|
17
17
|
constructor(optionsOrPort?: (TOptions | number) | undefined);
|
|
18
18
|
onReady(fn: () => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* Reaps clients left behind by processes that died without disconnecting.
|
|
21
|
+
* Runs on a timer internally; public so tests can drive it deterministically.
|
|
22
|
+
*/
|
|
23
|
+
cleanupOrphans(): Promise<void>;
|
|
19
24
|
/**
|
|
20
25
|
* Gracefully shuts down the server.
|
|
21
26
|
*/
|