@xh/hoist 73.0.0-SNAPSHOT.1741967769000 → 73.0.0-SNAPSHOT.1742937460874

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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## v73.0.0-SNAPSHOT - unreleased
4
4
 
5
+ * Support for reporting Client Version in Admin WebSockets tab.
6
+
5
7
  ## v72.2.0 - 2025-03-13
6
8
 
7
9
  ### 🎁 New Features
@@ -117,8 +117,6 @@ export class LogDisplayModel extends HoistModel {
117
117
  },
118
118
  loadSpec
119
119
  });
120
- // Backward compatibility for Hoist Core < v22, which returned exception in-band
121
- if (!response.success) throw XH.exception(response.exception);
122
120
  this.updateGridData(response.content);
123
121
  }
124
122
 
@@ -72,3 +72,12 @@ export const lastReceivedTime: ColumnSpec = {
72
72
  ...Col.compactDate,
73
73
  width: 140
74
74
  };
75
+
76
+ export const clientAppVersion: ColumnSpec = {
77
+ field: {
78
+ name: 'clientAppVersion',
79
+ type: 'string',
80
+ displayName: 'Client Version'
81
+ },
82
+ width: 120
83
+ };
@@ -77,7 +77,8 @@ export class WebSocketModel extends BaseInstanceModel {
77
77
  WSCol.sentMessageCount,
78
78
  WSCol.lastSentTime,
79
79
  WSCol.receivedMessageCount,
80
- WSCol.lastReceivedTime
80
+ WSCol.lastReceivedTime,
81
+ WSCol.clientAppVersion
81
82
  ]
82
83
  });
83
84
 
@@ -6,3 +6,4 @@ 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 clientAppVersion: ColumnSpec;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1741967769000",
3
+ "version": "73.0.0-SNAPSHOT.1742937460874",
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",
@@ -282,8 +282,7 @@ export class WebSocketService extends HoistService {
282
282
 
283
283
  buildWebSocketUrl() {
284
284
  const protocol = window.location.protocol == 'https:' ? 'wss:' : 'ws:',
285
- endpoint = 'xhWebSocket';
286
-
285
+ endpoint = 'xhWebSocket?clientAppVersion=' + XH.appVersion;
287
286
  return XH.isDevelopmentMode
288
287
  ? `${protocol}//${XH.baseUrl.split('//')[1]}${endpoint}`
289
288
  : `${protocol}//${window.location.host}${XH.baseUrl}${endpoint}`;