Commit 1c449f8
committed
refactor(ServerProvider): drop Meteor.absoluteUrl and combine Meteor + DDPSDK status
- absoluteUrl(path) now uses new URL(path, __meteor_runtime_config__.ROOT_URL).
Same pattern we applied to roomCoordinator and AudioEncoder in the other
migration branch, and prepares this file for the Meteor.absoluteUrl
helper going away with the Meteor bundler.
- getStatus() rolls up Meteor's DDP status with the DDPSDK connection
status. If either socket is disconnected or still connecting, the UI
reflects the worst state so the ConnectionStatusBar warns the user and
useIdleConnection does not assume liveness. A dedicated
Tracker.Dependency bridges DDPSDK's connection events into the same
useReactiveValue autorun that reads Meteor.status(), so transitions on
either transport invalidate the computation.1 parent 4e236dd commit 1c449f8
1 file changed
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
96 | 129 | | |
97 | 130 | | |
98 | 131 | | |
| |||
0 commit comments