@trudb/tru-common-lib 0.0.486 → 0.0.488

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.
@@ -5611,16 +5611,16 @@ const connection = new signalR.HubConnectionBuilder()
5611
5611
  .withUrl("https://localhost:44476/notificationhub", {
5612
5612
  skipNegotiation: true,
5613
5613
  transport: signalR.HttpTransportType.WebSockets,
5614
- }).build();
5614
+ }).withAutomaticReconnect().build();
5615
5615
  class TruConnectionHub {
5616
5616
  constructor() {
5617
5617
  this.start = () => {
5618
+ connection.on("change", (value) => {
5619
+ console.log(JSON.parse(value));
5620
+ });
5618
5621
  try {
5619
5622
  connection.start().then(() => {
5620
5623
  console.log(`SignalR connection success! connectionId: ${connection.connectionId}`);
5621
- connection.on("change", (value) => {
5622
- console.log(JSON.parse(value));
5623
- });
5624
5624
  });
5625
5625
  }
5626
5626
  catch (error) {