@xh/hoist 73.0.0-SNAPSHOT.1744391471093 → 73.0.0-SNAPSHOT.1744587856582
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 +1 -0
- package/admin/tabs/cluster/instances/websocket/WebSocketColumns.ts +24 -2
- package/admin/tabs/cluster/instances/websocket/WebSocketModel.ts +4 -1
- package/build/types/admin/tabs/cluster/instances/websocket/WebSocketColumns.d.ts +4 -1
- package/build/types/svc/WebSocketService.d.ts +1 -0
- package/package.json +1 -1
- package/svc/WebSocketService.ts +2 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
connected clients.
|
|
9
9
|
* Enabled telemetry reporting from `WebSocketService`.
|
|
10
10
|
* Updated `MenuItem.actionFn()` to receive the click event as an additional argument.
|
|
11
|
+
* Support for reporting App Build, Tab Id, and Load Id in websocket admin page.
|
|
11
12
|
|
|
12
13
|
## v72.4.0 - 2025-04-09
|
|
13
14
|
|
|
@@ -73,11 +73,33 @@ export const lastReceivedTime: ColumnSpec = {
|
|
|
73
73
|
width: 140
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
export const
|
|
76
|
+
export const appVersion: ColumnSpec = {
|
|
77
77
|
field: {
|
|
78
|
-
name: '
|
|
78
|
+
name: 'appVersion',
|
|
79
79
|
type: 'string',
|
|
80
80
|
displayName: 'Client Version'
|
|
81
81
|
},
|
|
82
82
|
width: 120
|
|
83
83
|
};
|
|
84
|
+
|
|
85
|
+
export const appBuild: ColumnSpec = {
|
|
86
|
+
field: {
|
|
87
|
+
name: 'appBuild',
|
|
88
|
+
type: 'string'
|
|
89
|
+
},
|
|
90
|
+
width: 120
|
|
91
|
+
};
|
|
92
|
+
export const loadId: ColumnSpec = {
|
|
93
|
+
field: {
|
|
94
|
+
name: 'loadId',
|
|
95
|
+
type: 'string'
|
|
96
|
+
},
|
|
97
|
+
width: 120
|
|
98
|
+
};
|
|
99
|
+
export const tabId: ColumnSpec = {
|
|
100
|
+
field: {
|
|
101
|
+
name: 'tabId',
|
|
102
|
+
type: 'string'
|
|
103
|
+
},
|
|
104
|
+
width: 120
|
|
105
|
+
};
|
|
@@ -6,4 +6,7 @@ export declare const sentMessageCount: ColumnSpec;
|
|
|
6
6
|
export declare const lastSentTime: ColumnSpec;
|
|
7
7
|
export declare const receivedMessageCount: ColumnSpec;
|
|
8
8
|
export declare const lastReceivedTime: ColumnSpec;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const appVersion: ColumnSpec;
|
|
10
|
+
export declare const appBuild: ColumnSpec;
|
|
11
|
+
export declare const loadId: ColumnSpec;
|
|
12
|
+
export declare const tabId: ColumnSpec;
|
|
@@ -28,6 +28,7 @@ export declare class WebSocketService extends HoistService {
|
|
|
28
28
|
readonly REG_SUCCESS_TOPIC = "xhRegistrationSuccess";
|
|
29
29
|
readonly FORCE_APP_SUSPEND_TOPIC = "xhForceAppSuspend";
|
|
30
30
|
readonly REQ_CLIENT_HEALTH_RPT_TOPIC = "xhRequestClientHealthReport";
|
|
31
|
+
readonly METADATA_FOR_HANDSHAKE: string[];
|
|
31
32
|
/** True if WebSockets generally enabled - set statically in code via {@link AppSpec}. */
|
|
32
33
|
enabled: boolean;
|
|
33
34
|
/** Unique channel assigned by server upon successful connection. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "73.0.0-SNAPSHOT.
|
|
3
|
+
"version": "73.0.0-SNAPSHOT.1744587856582",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|
package/svc/WebSocketService.ts
CHANGED
|
@@ -42,6 +42,7 @@ export class WebSocketService extends HoistService {
|
|
|
42
42
|
readonly REG_SUCCESS_TOPIC = 'xhRegistrationSuccess';
|
|
43
43
|
readonly FORCE_APP_SUSPEND_TOPIC = 'xhForceAppSuspend';
|
|
44
44
|
readonly REQ_CLIENT_HEALTH_RPT_TOPIC = 'xhRequestClientHealthReport';
|
|
45
|
+
readonly METADATA_FOR_HANDSHAKE = ['appVersion', 'appBuild', 'loadId', 'tabId'];
|
|
45
46
|
|
|
46
47
|
/** True if WebSockets generally enabled - set statically in code via {@link AppSpec}. */
|
|
47
48
|
enabled: boolean = XH.appSpec.webSocketsEnabled;
|
|
@@ -304,7 +305,7 @@ export class WebSocketService extends HoistService {
|
|
|
304
305
|
|
|
305
306
|
private buildWebSocketUrl() {
|
|
306
307
|
const protocol = window.location.protocol == 'https:' ? 'wss:' : 'ws:',
|
|
307
|
-
endpoint =
|
|
308
|
+
endpoint = `xhWebSocket?${this.METADATA_FOR_HANDSHAKE.map(key => `${key}=${XH[key]}`).join('&')}`;
|
|
308
309
|
return XH.isDevelopmentMode
|
|
309
310
|
? `${protocol}//${XH.baseUrl.split('//')[1]}${endpoint}`
|
|
310
311
|
: `${protocol}//${window.location.host}${XH.baseUrl}${endpoint}`;
|