Repository navigation
Commit 99d72fc
committed
Refactor Mothership integration to use WebSocket-based UnraidServerClient
- Updated package.json scripts to remove MOTHERSHIP_GRAPHQL_LINK environment variable.
- Changed MOTHERSHIP_GRAPHQL_LINK to MOTHERSHIP_BASE_URL in environment.ts.
- Removed GraphQL code generation for Mothership types in codegen.ts.
- Updated connection status services to use MOTHERSHIP_BASE_URL.
- Refactored MothershipSubscriptionHandler to utilize UnraidServerClient instead of GraphQL client.
- Implemented UnraidServerClient for WebSocket communication with Mothership.
- Enhanced MothershipController to manage UnraidServerClient lifecycle.
- Added reconnection logic and ping/pong handling in UnraidServerClient.
- Simplified GraphQL execution logic in UnraidServerClient.1 parent 52f2267 commit 99d72fc
14 files changed
Lines changed: 628 additions & 441 deletions
File tree
- api
- dev
- configs
- states
- src
- packages/unraid-api-plugin-connect
- src
- connection-status
- mothership-proxy
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments