r-agency-mesh 1.167.0 → 1.168.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "r-agency-mesh",
3
- "version": "1.167.0",
3
+ "version": "1.168.0",
4
4
  "scripts": {
5
5
  "build-dev": "npm run compile && npm run gen",
6
6
  "build-prod": "npm run compile && npm run gen-prod",
@@ -3530,6 +3530,12 @@ interface IMeshCoreCANBusEvents {
3530
3530
  socket: WebSocket;
3531
3531
  request: http.IncomingMessage;
3532
3532
  };
3533
+ client_added: {
3534
+ token: IWsClientToken;
3535
+ client: IWsClient;
3536
+ socket: WebSocket;
3537
+ request: http.IncomingMessage;
3538
+ };
3533
3539
  client_disconnected: {
3534
3540
  client: IWsClient;
3535
3541
  };
package/release/index.js CHANGED
@@ -24823,6 +24823,12 @@ var init_websocket_server = __esm({
24823
24823
  }
24824
24824
  this.initializeClient(client, socket);
24825
24825
  this.container.service("ws-client-manager").add(client);
24826
+ await this.canBus.channel("websocket").event("client_added", {
24827
+ token,
24828
+ client,
24829
+ socket,
24830
+ request
24831
+ }).dispatch();
24826
24832
  } catch (e) {
24827
24833
  const error = e;
24828
24834
  this.printer.error(`ws client connection error: ${error.message}`);