@rebasepro/server-postgres 0.10.1-canary.6f89f77 → 0.10.1-canary.7609565
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/dist/PostgresBootstrapper.d.ts +7 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +876 -75
- package/dist/index.es.js.map +1 -1
- package/dist/services/cdc/CdcListener.d.ts +7 -14
- package/dist/services/channel-bus/ChannelBus.d.ts +29 -0
- package/dist/services/channel-bus/PostgresChannelBus.d.ts +111 -0
- package/dist/services/channel-bus/index.d.ts +55 -0
- package/dist/services/channel-history.d.ts +11 -0
- package/dist/services/channel-presence.d.ts +66 -0
- package/dist/services/pg-notify-listener.d.ts +47 -0
- package/dist/services/realtimeService.d.ts +114 -6
- package/package.json +6 -6
- package/src/PostgresBootstrapper.ts +32 -3
- package/src/index.ts +4 -0
- package/src/services/cdc/CdcListener.ts +27 -91
- package/src/services/channel-bus/ChannelBus.ts +44 -0
- package/src/services/channel-bus/PostgresChannelBus.ts +299 -0
- package/src/services/channel-bus/index.ts +123 -0
- package/src/services/channel-history.ts +35 -0
- package/src/services/channel-presence.ts +148 -0
- package/src/services/pg-notify-listener.ts +137 -0
- package/src/services/realtimeService.ts +370 -11
|
@@ -26,9 +26,13 @@ export interface PostgresDriverConfig {
|
|
|
26
26
|
*/
|
|
27
27
|
introspectionSchema?: string;
|
|
28
28
|
/**
|
|
29
|
-
* Realtime options
|
|
30
|
-
*
|
|
31
|
-
*
|
|
29
|
+
* Realtime options, both opt-in:
|
|
30
|
+
*
|
|
31
|
+
* - `channels` — retention. Without rules no channel keeps any history and
|
|
32
|
+
* broadcast stays fire-and-forget. See {@link ChannelRetentionRule}.
|
|
33
|
+
* - `bus` — the cross-instance transport for channel broadcast and
|
|
34
|
+
* presence. Defaults to in-process only, which is correct for a single
|
|
35
|
+
* instance and wrong for two. See {@link ChannelBusConfig}.
|
|
32
36
|
*/
|
|
33
37
|
realtime?: RealtimeChannelsConfig;
|
|
34
38
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./schema/generate-drizzle-schema-logic";
|
|
|
7
7
|
export * from "./schema/generate-drizzle-schema";
|
|
8
8
|
export * from "./utils/drizzle-conditions";
|
|
9
9
|
export * from "./services/realtimeService";
|
|
10
|
+
export * from "./services/channel-bus";
|
|
10
11
|
export * from "./websocket";
|
|
11
12
|
export * from "./collections/PostgresCollectionRegistry";
|
|
12
13
|
export * from "./services/BranchService";
|