@ultimat3/realtime 19.3.3 → 19.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/sync-node.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/realtime",
3
- "version": "19.3.3",
3
+ "version": "19.4.0",
4
4
  "description": "Three-tier realtime: channels, live queries, local-first sync — one protocol, one mutator shape",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,8 +36,8 @@
36
36
  "test": "bun test"
37
37
  },
38
38
  "dependencies": {
39
- "@ultimat3/core": "19.3.3",
40
- "@ultimat3/query": "19.3.3",
39
+ "@ultimat3/core": "19.4.0",
40
+ "@ultimat3/query": "19.4.0",
41
41
  "nats": "2.29.3"
42
42
  }
43
43
  }
package/src/sync-node.ts CHANGED
@@ -99,6 +99,8 @@ export interface SyncNodeOptions {
99
99
  export interface SyncNode {
100
100
  readonly sockets: SocketRegistry;
101
101
  readonly ready: boolean;
102
+ /** The one path it answers an upgrade on: a HOST has to route it, and must not restate it. */
103
+ readonly path: string;
102
104
  start(): Promise<void>;
103
105
  /**
104
106
  * Refuse new connections, keep every one this node holds. The SIGTERM `accept` phase calls it —
@@ -280,6 +282,7 @@ export function createSyncNode(options: SyncNodeOptions): SyncNode {
280
282
 
281
283
  return {
282
284
  sockets,
285
+ path,
283
286
 
284
287
  get ready(): boolean {
285
288
  return ready;