@bymax-one/nest-realtime 1.1.2 → 1.2.1
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/CHANGELOG.md +148 -1
- package/README.md +125 -14
- package/dist/internal/index.cjs +139 -18
- package/dist/internal/index.d.cts +196 -24
- package/dist/internal/index.d.ts +196 -24
- package/dist/internal/index.mjs +139 -20
- package/dist/websocket/index.cjs +59 -29
- package/dist/websocket/index.d.cts +21 -4
- package/dist/websocket/index.d.ts +21 -4
- package/dist/websocket/index.mjs +60 -30
- package/package.json +1 -1
|
@@ -47,10 +47,10 @@ interface ConnectionAuthContext {
|
|
|
47
47
|
/**
|
|
48
48
|
* Query string parameters — useful for the ticket pattern.
|
|
49
49
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
50
|
+
* On WebSocket a repeated key (`?a=1&a=2`) arrives as a `string[]`, except the
|
|
51
|
+
* `ticket` parameter, which the gateway collapses to a single string. On SSE only
|
|
52
|
+
* a single string value is kept; a repeated key arrives as `undefined`.
|
|
53
|
+
* Authenticators that expect a single value should check `typeof value === 'string'`.
|
|
54
54
|
*/
|
|
55
55
|
readonly query: Record<string, string | string[] | undefined>;
|
|
56
56
|
/**
|
|
@@ -69,10 +69,32 @@ interface ConnectionAuthContext {
|
|
|
69
69
|
* may carry extra fields through the `metadata` bag.
|
|
70
70
|
*/
|
|
71
71
|
interface AuthenticationResult {
|
|
72
|
+
/**
|
|
73
|
+
* The authenticated account. Must be a non-empty string: a blank one indexes
|
|
74
|
+
* every such connection under a single key and joins them all to the room
|
|
75
|
+
* `user:`, so it is refused at connection bootstrap rather than registered.
|
|
76
|
+
*/
|
|
72
77
|
readonly userId: string;
|
|
78
|
+
/**
|
|
79
|
+
* The tenant this connection routes on, or absent when it belongs to none.
|
|
80
|
+
*
|
|
81
|
+
* Absent and empty are different. Omitting it — or returning `undefined` or
|
|
82
|
+
* `null` — means no tenant: indexed under none, joining no tenant room. An empty
|
|
83
|
+
* or whitespace-only string is refused, because it is a shared bucket rather than
|
|
84
|
+
* a missing value: every connection carrying `''` lands under the same key.
|
|
85
|
+
*/
|
|
73
86
|
readonly tenantId?: string;
|
|
74
87
|
readonly roles?: readonly string[];
|
|
75
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Free-form extras for downstream code (e.g. feature flags, plan tier, a
|
|
90
|
+
* correlation id read off the handshake headers).
|
|
91
|
+
*
|
|
92
|
+
* Carried verbatim — the library never reads a key. It reaches
|
|
93
|
+
* `ConnectionEventMeta.metadata` in the three hooks that receive that type —
|
|
94
|
+
* `onConnect`, `onDisconnect` and `onReauthenticationFailed` — and is handed
|
|
95
|
+
* back to `revalidate` as part of the original result. `onError` takes a
|
|
96
|
+
* narrower payload and carries no `metadata`.
|
|
97
|
+
*/
|
|
76
98
|
readonly metadata?: Record<string, unknown>;
|
|
77
99
|
}
|
|
78
100
|
/**
|
|
@@ -101,6 +123,12 @@ interface IConnectionAuthenticator {
|
|
|
101
123
|
*
|
|
102
124
|
* @returns the authenticated result, or `null` to reject the connection (the
|
|
103
125
|
* transport replies 401 / disconnects accordingly).
|
|
126
|
+
*
|
|
127
|
+
* Returning a result whose `userId` is blank, or whose `tenantId` is present but
|
|
128
|
+
* blank, is not a second way to reject: it is a contract violation. The connection
|
|
129
|
+
* is refused either way, but it surfaces as a server fault rather than a 401,
|
|
130
|
+
* because the credentials were accepted and the fault is in this method. Return
|
|
131
|
+
* `null` to reject a client.
|
|
104
132
|
*/
|
|
105
133
|
authenticate(context: ConnectionAuthContext): Promise<AuthenticationResult | null>;
|
|
106
134
|
/**
|
|
@@ -131,6 +159,26 @@ interface ConnectionEventMeta {
|
|
|
131
159
|
* keeps the connection alive does not refresh this snapshot.
|
|
132
160
|
*/
|
|
133
161
|
readonly roles: readonly string[] | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* The free-form `metadata` bag the authenticator returned, as a snapshot taken
|
|
164
|
+
* at connect time — `undefined` when the authenticator returned none.
|
|
165
|
+
*
|
|
166
|
+
* This is the only channel that carries a value from the handshake into the
|
|
167
|
+
* hooks that receive this type — `onConnect`, `onDisconnect` and
|
|
168
|
+
* `onReauthenticationFailed`. `authenticate` sees the request headers but not
|
|
169
|
+
* yet a `connectionId`, and those hooks see the `connectionId` but not the
|
|
170
|
+
* headers, so anything read off the request — a `traceparent`, an
|
|
171
|
+
* `x-request-id`, a plan tier — has to travel through here to be correlated
|
|
172
|
+
* with a connection.
|
|
173
|
+
*
|
|
174
|
+
* `onError` does NOT receive this type and therefore carries no `metadata`:
|
|
175
|
+
* it can fire before authentication has resolved, which is why even its
|
|
176
|
+
* `connectionId` is optional.
|
|
177
|
+
*
|
|
178
|
+
* The library never inspects a key. Like `roles`, it is a snapshot: a later
|
|
179
|
+
* `revalidate` that keeps the connection alive does not refresh it.
|
|
180
|
+
*/
|
|
181
|
+
readonly metadata: Record<string, unknown> | undefined;
|
|
134
182
|
readonly transport: 'sse' | 'websocket';
|
|
135
183
|
readonly ip: string;
|
|
136
184
|
readonly userAgent: string | undefined;
|
|
@@ -149,7 +197,15 @@ interface IConnectionLifecycleHooks {
|
|
|
149
197
|
reason?: string;
|
|
150
198
|
durationMs: number;
|
|
151
199
|
}): void | Promise<void>;
|
|
152
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* Called on a transport error.
|
|
202
|
+
*
|
|
203
|
+
* Deliberately NOT `ConnectionEventMeta`: this hook can fire before
|
|
204
|
+
* authentication resolves, so there may be no connection to describe. It
|
|
205
|
+
* carries no `roles` and no `metadata` — `connectionId` is optional for the
|
|
206
|
+
* same reason. Pinned by a test, so widening this shape means updating the
|
|
207
|
+
* documented guarantee with it.
|
|
208
|
+
*/
|
|
153
209
|
onError?(meta: {
|
|
154
210
|
connectionId?: string;
|
|
155
211
|
error: Error;
|
|
@@ -290,12 +346,18 @@ interface ReauthenticationPolicy {
|
|
|
290
346
|
/** Synchronous module configuration. */
|
|
291
347
|
interface BymaxRealtimeModuleOptions {
|
|
292
348
|
transport: TransportMode;
|
|
293
|
-
service?: {
|
|
294
|
-
name: string;
|
|
295
|
-
version: string;
|
|
296
|
-
};
|
|
297
349
|
authenticator: IConnectionAuthenticator;
|
|
298
|
-
|
|
350
|
+
/**
|
|
351
|
+
* Derive the tenant a connection routes on from the authenticated result.
|
|
352
|
+
*
|
|
353
|
+
* Applied on **both** transports. `undefined` and `null` both mean "no opinion"
|
|
354
|
+
* and fall back to `auth.tenantId` rather than clearing it; to place a connection
|
|
355
|
+
* in no tenant, return a result without one from the authenticator. `null` is in
|
|
356
|
+
* the signature because the implementation accepts it and a type narrower than the
|
|
357
|
+
* behaviour forces a cast on anyone testing the boundary. A blank string is
|
|
358
|
+
* refused, on the same terms as `AuthenticationResult.tenantId`.
|
|
359
|
+
*/
|
|
360
|
+
tenantResolver?: (auth: AuthenticationResult) => string | undefined | null;
|
|
299
361
|
hooks?: IConnectionLifecycleHooks;
|
|
300
362
|
pubsub?: IRealtimePubSub;
|
|
301
363
|
offlineQueue?: IOfflineQueueStorage;
|
|
@@ -334,6 +396,20 @@ interface BymaxRealtimeModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'
|
|
|
334
396
|
* `transport` the factory resolves; a mismatch fails fast at bootstrap.
|
|
335
397
|
*/
|
|
336
398
|
transport: TransportMode;
|
|
399
|
+
/**
|
|
400
|
+
* Path to bind the SSE controller to. Defaults to `'/events'`.
|
|
401
|
+
*
|
|
402
|
+
* Declared here rather than read from `sse.endpoint` for the same reason
|
|
403
|
+
* `transport` is: controllers are registered at decoration time, and the
|
|
404
|
+
* factory has not run yet. An `sse.endpoint` coming back from the factory
|
|
405
|
+
* cannot move the route, so a registration that sets it to anything other
|
|
406
|
+
* than this value is rejected at bootstrap instead of silently serving a
|
|
407
|
+
* different path than the one configured.
|
|
408
|
+
*
|
|
409
|
+
* Rejected outright when `transport` is `'websocket'`, which registers no SSE
|
|
410
|
+
* controller for it to name.
|
|
411
|
+
*/
|
|
412
|
+
sseEndpoint?: string;
|
|
337
413
|
/**
|
|
338
414
|
* Factory producing the options, receiving whatever `inject` resolves.
|
|
339
415
|
*
|
|
@@ -409,14 +485,21 @@ interface TransportWiring {
|
|
|
409
485
|
build(resolved: ResolvedRealtimeOptions): TransportRegistration;
|
|
410
486
|
/**
|
|
411
487
|
* Wire the transports for the asynchronous path, where options are not known
|
|
412
|
-
* at decoration time. Controllers must be registered then, so the endpoint
|
|
413
|
-
*
|
|
488
|
+
* at decoration time. Controllers must be registered then, so the endpoint
|
|
489
|
+
* comes from the registration itself rather than from the resolved options.
|
|
414
490
|
*/
|
|
415
|
-
buildAsync(
|
|
491
|
+
buildAsync(params: AsyncWiringParams): {
|
|
416
492
|
readonly providers: Provider[];
|
|
417
493
|
readonly controllers: Type<unknown>[];
|
|
418
494
|
};
|
|
419
495
|
}
|
|
496
|
+
/** What the async path can know before any factory has run. */
|
|
497
|
+
interface AsyncWiringParams {
|
|
498
|
+
/** The transport declared on the registration. */
|
|
499
|
+
readonly mode: BymaxRealtimeModuleOptions['transport'];
|
|
500
|
+
/** The path to bind the SSE controller to, already defaulted by the caller. */
|
|
501
|
+
readonly sseEndpoint: string;
|
|
502
|
+
}
|
|
420
503
|
|
|
421
504
|
/**
|
|
422
505
|
* Compose the synchronous dynamic module for an entry point.
|
|
@@ -478,9 +561,12 @@ declare class BymaxRealtimeModule {
|
|
|
478
561
|
* configuration rejects at bootstrap and the application fails to start with
|
|
479
562
|
* a clear error.
|
|
480
563
|
*
|
|
481
|
-
* Controllers are registered at decoration time, so
|
|
482
|
-
*
|
|
483
|
-
*
|
|
564
|
+
* Controllers are registered at decoration time, so the SSE route comes from
|
|
565
|
+
* `sseEndpoint` on the registration rather than from the `sse.endpoint` the
|
|
566
|
+
* factory resolves — the factory has not run yet when the controller is
|
|
567
|
+
* built. It defaults to `/events`, and a factory that resolves a disagreeing
|
|
568
|
+
* `sse.endpoint` is rejected at bootstrap rather than silently served on
|
|
569
|
+
* another path.
|
|
484
570
|
*
|
|
485
571
|
* @throws when no factory pattern is given, more than one is, or the factory
|
|
486
572
|
* resolves a transport other than `'sse'`.
|
|
@@ -488,6 +574,7 @@ declare class BymaxRealtimeModule {
|
|
|
488
574
|
* ```ts
|
|
489
575
|
* BymaxRealtimeModule.forRootAsync({
|
|
490
576
|
* transport: 'sse',
|
|
577
|
+
* sseEndpoint: '/realtime/sse', // optional; defaults to '/events'
|
|
491
578
|
* imports: [ConfigModule],
|
|
492
579
|
* inject: [ConfigService],
|
|
493
580
|
* useFactory: (cfg: ConfigService) => ({
|
|
@@ -545,6 +632,8 @@ interface ConnectionRecord {
|
|
|
545
632
|
userId: string;
|
|
546
633
|
tenantId: string | undefined;
|
|
547
634
|
roles: readonly string[] | undefined;
|
|
635
|
+
/** The authenticator's free-form bag, carried through verbatim and never read. */
|
|
636
|
+
metadata: Record<string, unknown> | undefined;
|
|
548
637
|
};
|
|
549
638
|
}
|
|
550
639
|
/**
|
|
@@ -680,7 +769,13 @@ declare class RealtimeService {
|
|
|
680
769
|
emitToRoom(roomId: string, event: string, data: unknown): Promise<void>;
|
|
681
770
|
/** Send to every connected client. Use sparingly. */
|
|
682
771
|
broadcast(event: string, data: unknown): Promise<void>;
|
|
683
|
-
/**
|
|
772
|
+
/**
|
|
773
|
+
* Add a specific connection to a room.
|
|
774
|
+
*
|
|
775
|
+
* The room id is not checked. Never pass client-supplied input that could start
|
|
776
|
+
* with the reserved `user:` or `tenant:` prefixes: joining `tenant:<other>`
|
|
777
|
+
* receives that tenant's events.
|
|
778
|
+
*/
|
|
684
779
|
joinRoom(connectionId: string, roomId: string): Promise<void>;
|
|
685
780
|
/** Remove a specific connection from a room. */
|
|
686
781
|
leaveRoom(connectionId: string, roomId: string): Promise<void>;
|
|
@@ -694,8 +789,8 @@ declare class RealtimeService {
|
|
|
694
789
|
*/
|
|
695
790
|
|
|
696
791
|
/**
|
|
697
|
-
* Periodically revalidates active
|
|
698
|
-
* `IConnectionAuthenticator.revalidate` contract.
|
|
792
|
+
* Periodically revalidates every active connection, on both transports, through the
|
|
793
|
+
* consumer-provided `IConnectionAuthenticator.revalidate` contract.
|
|
699
794
|
*
|
|
700
795
|
* A short positive cache (default 60 s) avoids hammering the auth backend on every
|
|
701
796
|
* interval tick. On failure the service either disconnects immediately or first emits
|
|
@@ -731,7 +826,7 @@ declare class ReauthenticationService implements OnModuleInit, OnApplicationShut
|
|
|
731
826
|
*/
|
|
732
827
|
onApplicationShutdown(): void;
|
|
733
828
|
/**
|
|
734
|
-
* Run one revalidation cycle over
|
|
829
|
+
* Run one revalidation cycle over every active connection, SSE and WebSocket alike.
|
|
735
830
|
*
|
|
736
831
|
* A cache hit within `cacheTtlMs` skips the `revalidate` call. A positive result
|
|
737
832
|
* refreshes the cache. A negative result (or a thrown error) invokes the configured
|
|
@@ -1077,6 +1172,30 @@ declare class SseSubscriptionHandler {
|
|
|
1077
1172
|
private readonly offlineDelivery?;
|
|
1078
1173
|
private readonly logger;
|
|
1079
1174
|
constructor(transport: SseTransport, heartbeat: HeartbeatService, options: BymaxRealtimeModuleOptions, hooks?: IConnectionLifecycleHooks | undefined, offlineDelivery?: OfflineQueueDeliveryService | undefined);
|
|
1175
|
+
/**
|
|
1176
|
+
* Resolve the tenant this connection routes on, and refuse a blank identity.
|
|
1177
|
+
*
|
|
1178
|
+
* Both transports resolve the routing tenant through this one function, so a
|
|
1179
|
+
* connection carries the same tenant whichever one opened it. The check runs on
|
|
1180
|
+
* the resolved value rather than the raw one — validating what the server does not
|
|
1181
|
+
* use would validate nothing.
|
|
1182
|
+
*
|
|
1183
|
+
* A blank identity is the consumer's configuration rather than the client's
|
|
1184
|
+
* credentials, so it is deliberately not a 401: a 401 would tell a client its
|
|
1185
|
+
* credentials were rejected when they were accepted, inviting a retry that cannot
|
|
1186
|
+
* succeed. Wrapped rather than rethrown raw so the 500 is a decision Nest logs
|
|
1187
|
+
* once, not an unhandled crash logging a stack on every reconnect.
|
|
1188
|
+
*
|
|
1189
|
+
* The reason names the operator's fix, so it goes to the server log and the client
|
|
1190
|
+
* receives Nest's generic 500 body, as the WebSocket gateway does by disconnecting
|
|
1191
|
+
* without a message.
|
|
1192
|
+
*
|
|
1193
|
+
* @param auth - The result the consumer's authenticator returned.
|
|
1194
|
+
* @returns The same result with the routing tenant resolved.
|
|
1195
|
+
* @throws InternalServerErrorException with the generic body when a trait is present
|
|
1196
|
+
* but blank.
|
|
1197
|
+
*/
|
|
1198
|
+
private resolveAndValidateIdentity;
|
|
1080
1199
|
/**
|
|
1081
1200
|
* Handle an incoming SSE connection request end-to-end.
|
|
1082
1201
|
*
|
|
@@ -1088,7 +1207,15 @@ declare class SseSubscriptionHandler {
|
|
|
1088
1207
|
* @param req - The incoming request (SSE GET).
|
|
1089
1208
|
* @param res - The response (passthrough for header mutations and heartbeat writes).
|
|
1090
1209
|
* @returns An Observable of `MessageEvent` values for NestJS `@Sse` to stream.
|
|
1091
|
-
* @throws UnauthorizedException when authentication returns null
|
|
1210
|
+
* @throws UnauthorizedException when authentication returns null — the client's
|
|
1211
|
+
* credentials were rejected, which is a 401.
|
|
1212
|
+
* @throws InternalServerErrorException when the authenticator, or the configured
|
|
1213
|
+
* `tenantResolver`, yields a blank `userId` or `tenantId`. This is deliberately not
|
|
1214
|
+
* a 401: the credentials were accepted and the fault is the consumer's
|
|
1215
|
+
* configuration, so it surfaces as a 500 rather than telling a client to retry
|
|
1216
|
+
* something that cannot succeed. The exception carries no message, so the client
|
|
1217
|
+
* gets Nest's generic body, and the `REALTIME_AUTH_FAILED` reason naming the fix is
|
|
1218
|
+
* written to the server log.
|
|
1092
1219
|
*/
|
|
1093
1220
|
handle(req: SseRequest, res: SseResponse): Promise<Observable<MessageEvent>>;
|
|
1094
1221
|
/**
|
|
@@ -1316,6 +1443,45 @@ declare class RedisOfflineQueue implements IOfflineQueueStorage {
|
|
|
1316
1443
|
acknowledge(userId: string, upToId: string): Promise<void>;
|
|
1317
1444
|
}
|
|
1318
1445
|
|
|
1446
|
+
/**
|
|
1447
|
+
* Resolve the tenant a connection routes on, and normalize a nullish result.
|
|
1448
|
+
*
|
|
1449
|
+
* Both transports must resolve the routing tenant through this one function. Two
|
|
1450
|
+
* copies of the rule can disagree, and a connection routed on one tenant by SSE and
|
|
1451
|
+
* another by WebSocket is a delivery to the wrong audience.
|
|
1452
|
+
*
|
|
1453
|
+
* `null` normalizes to `undefined` rather than passing through. `ConnectionRegistry`
|
|
1454
|
+
* guards on `!== undefined`, so a `null` tenant would otherwise be indexed under
|
|
1455
|
+
* `null` and compose the room `tenant:null` — the same shared-bucket defect as the
|
|
1456
|
+
* empty string, in a value a JWT claim produces routinely.
|
|
1457
|
+
*
|
|
1458
|
+
* @param options - The module options, read for an optional `tenantResolver`.
|
|
1459
|
+
* @param auth - The authentication result the consumer's authenticator returned.
|
|
1460
|
+
* @returns The same result with `tenantId` resolved, or absent when there is none.
|
|
1461
|
+
*/
|
|
1462
|
+
declare function resolveAuthTenant(options: Pick<BymaxRealtimeModuleOptions, 'tenantResolver'>, auth: AuthenticationResult): AuthenticationResult;
|
|
1463
|
+
/**
|
|
1464
|
+
* Reject an authentication result whose identity traits are present but blank.
|
|
1465
|
+
*
|
|
1466
|
+
* `userId` and `tenantId` index the registry and compose the `user:` and `tenant:`
|
|
1467
|
+
* rooms, so a blank one is not a missing value — it is a shared bucket. Every
|
|
1468
|
+
* connection whose authenticator returned `''` lands under the same key and joins
|
|
1469
|
+
* the same room, and a later emit to that key reaches all of them. On a long-lived
|
|
1470
|
+
* subscription that is not one wrong response but a stream that keeps delivering
|
|
1471
|
+
* for the life of the connection.
|
|
1472
|
+
*
|
|
1473
|
+
* An absent `tenantId` stays valid and means exactly what it says: this connection
|
|
1474
|
+
* belongs to no tenant, so it is indexed under none and joins no tenant room. The
|
|
1475
|
+
* distinction drawn is between *absent* and *empty*, and only the second is refused.
|
|
1476
|
+
*
|
|
1477
|
+
* Whitespace counts as blank. `' '` composes `user: ` and indexes under `' '`, which
|
|
1478
|
+
* is the same defect wearing a different character.
|
|
1479
|
+
*
|
|
1480
|
+
* @param auth - The resolved authentication result, after `resolveAuthTenant`.
|
|
1481
|
+
* @throws Error carrying `REALTIME_AUTH_FAILED` when a trait is present but blank.
|
|
1482
|
+
*/
|
|
1483
|
+
declare function assertIdentityIsNotBlank(auth: AuthenticationResult): void;
|
|
1484
|
+
|
|
1319
1485
|
/**
|
|
1320
1486
|
* @fileoverview Canonical room id prefixes for scoping emits and auto-join.
|
|
1321
1487
|
* @layer shared
|
|
@@ -1348,7 +1514,13 @@ type RoomPrefix = (typeof ROOM_PREFIXES)[keyof typeof ROOM_PREFIXES];
|
|
|
1348
1514
|
* Build a canonical room id following the library's prefix convention.
|
|
1349
1515
|
*
|
|
1350
1516
|
* Validation of the parts (e.g. non-empty ids) is the caller's responsibility —
|
|
1351
|
-
* this helper only joins the prefix and parts with
|
|
1517
|
+
* this helper only joins the prefix and parts with `:` and escapes nothing, so a
|
|
1518
|
+
* part must not contain `:`. `('a:b', 'c')` and `('a', 'b:c')` both give
|
|
1519
|
+
* `resource:a:b:c`; encode parts that come from outside with `encodeURIComponent`, which escapes `:` and so
|
|
1520
|
+
* is sound for this `:` separator only.
|
|
1521
|
+
*
|
|
1522
|
+
* A `RESOURCE` room carries no tenant. When ids are only unique within one, pass
|
|
1523
|
+
* the tenant as its own encoded part rather than gluing it to the id.
|
|
1352
1524
|
*
|
|
1353
1525
|
* @example
|
|
1354
1526
|
* ```ts
|
|
@@ -1479,4 +1651,4 @@ declare const REALTIME_ERROR_CODES: {
|
|
|
1479
1651
|
/** Union of canonical error code values. */
|
|
1480
1652
|
type RealtimeErrorCode = (typeof REALTIME_ERROR_CODES)[keyof typeof REALTIME_ERROR_CODES];
|
|
1481
1653
|
|
|
1482
|
-
export { type AuthenticationResult, BymaxRealtimeModule, type BymaxRealtimeModuleAsyncOptions, type BymaxRealtimeModuleOptions, type BymaxRealtimeModuleOptionsFactory, type ConnectionAuthContext, type ConnectionEventMeta, ConnectionRegistry, type CorsConfig, EventIdGenerator, EventReplayBuffer, HeartbeatService, type IConnectionAuthenticator, type IConnectionLifecycleHooks, type IOfflineQueueStorage, type IPresenceStorage, type IRealtimePubSub, type ITransport, InMemoryPubSub, OfflineQueueDeliveryService, type OfflineQueuedEvent, type PublicConnectionMeta, REALTIME_AUTHENTICATOR_TOKEN, REALTIME_ERROR_CODES, REALTIME_HOOKS_TOKEN, REALTIME_INSTANCE_ID_TOKEN, REALTIME_OFFLINE_QUEUE_TOKEN, REALTIME_OPTIONS_TOKEN, REALTIME_PRESENCE_TOKEN, REALTIME_PUBSUB_TOKEN, REALTIME_TRANSPORT_TOKEN, RESERVED_EVENT_NAMES, ROOM_PREFIXES, type RealtimeErrorCode, type RealtimeEvent, type RealtimePubSubMessage, RealtimePubSubSubscriber, RealtimeService, type ReauthenticationPolicy, ReauthenticationService, RedisOfflineQueue, type RedisOfflineQueueOptions, RedisRealtimePubSub, type RedisRealtimePubSubOptions, type ReservedEventName, type RoomPrefix, RoomRegistry, type SseOptions, type SseRealtimeModuleAsyncOptions, type SseRealtimeModuleOptions, SseSubscriptionHandler, SseTransport, type TransportMode, type TransportRegistration, type TransportWiring, type WebSocketOptions, type WebSocketRealtimeModuleAsyncOptions, type WebSocketRealtimeModuleOptions, composeForRoot, composeForRootAsync, composeRoomId, createSseController, parseCookieHeader, sseWiring };
|
|
1654
|
+
export { type AuthenticationResult, BymaxRealtimeModule, type BymaxRealtimeModuleAsyncOptions, type BymaxRealtimeModuleOptions, type BymaxRealtimeModuleOptionsFactory, type ConnectionAuthContext, type ConnectionEventMeta, ConnectionRegistry, type CorsConfig, EventIdGenerator, EventReplayBuffer, HeartbeatService, type IConnectionAuthenticator, type IConnectionLifecycleHooks, type IOfflineQueueStorage, type IPresenceStorage, type IRealtimePubSub, type ITransport, InMemoryPubSub, OfflineQueueDeliveryService, type OfflineQueuedEvent, type PublicConnectionMeta, REALTIME_AUTHENTICATOR_TOKEN, REALTIME_ERROR_CODES, REALTIME_HOOKS_TOKEN, REALTIME_INSTANCE_ID_TOKEN, REALTIME_OFFLINE_QUEUE_TOKEN, REALTIME_OPTIONS_TOKEN, REALTIME_PRESENCE_TOKEN, REALTIME_PUBSUB_TOKEN, REALTIME_TRANSPORT_TOKEN, RESERVED_EVENT_NAMES, ROOM_PREFIXES, type RealtimeErrorCode, type RealtimeEvent, type RealtimePubSubMessage, RealtimePubSubSubscriber, RealtimeService, type ReauthenticationPolicy, ReauthenticationService, RedisOfflineQueue, type RedisOfflineQueueOptions, RedisRealtimePubSub, type RedisRealtimePubSubOptions, type ReservedEventName, type RoomPrefix, RoomRegistry, type SseOptions, type SseRealtimeModuleAsyncOptions, type SseRealtimeModuleOptions, SseSubscriptionHandler, SseTransport, type TransportMode, type TransportRegistration, type TransportWiring, type WebSocketOptions, type WebSocketRealtimeModuleAsyncOptions, type WebSocketRealtimeModuleOptions, assertIdentityIsNotBlank, composeForRoot, composeForRootAsync, composeRoomId, createSseController, parseCookieHeader, resolveAuthTenant, sseWiring };
|