@magic-xpa/engine 4.1300.0-dev4130.145 → 4.1300.0-dev4130.151

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.
@@ -13850,12 +13850,12 @@ class SubscriberClient {
13850
13850
  subscriptionsDataSubject = new Subject();
13851
13851
  constructor(task) {
13852
13852
  // Connect to the Socket.IO server with subscriber role
13853
- const serverUrl = Environment.Instance.GetPubSubServerURI();
13853
+ const serverUrl = EnvParamsTable.Instance.get(ConstInterface.MG_TAG_PUBSUB_SERVER_URI);
13854
13854
  const taskRef = task;
13855
13855
  this.socket = io(serverUrl, {
13856
13856
  query: {
13857
- role: 'subscriber',
13858
- token: 'abc123' // Default token for testing; replace with actual authentication
13857
+ role: 'subscriber'
13858
+ //token: '' // TODO: TO be used, in case subscriber needs to be authenticated with separate token.
13859
13859
  }
13860
13860
  });
13861
13861
  // Handle connection
@@ -13865,7 +13865,7 @@ class SubscriberClient {
13865
13865
  // Handle disconnection
13866
13866
  this.socket.on('disconnect', () => {
13867
13867
  console.log('Disconnected from server');
13868
- this.subscribedTopics.clear();
13868
+ this.subscribedTopics.clear(); //TODO: Check what happens if we disconnect and reconnect.
13869
13869
  });
13870
13870
  // Handle subscription confirmation
13871
13871
  this.socket.on('subscribed', (data) => {
@@ -39859,7 +39859,7 @@ class CommandsTable {
39859
39859
  }
39860
39860
  }
39861
39861
 
39862
- let CurrentClientVersion = '4.1300.0-dev4130.145';
39862
+ let CurrentClientVersion = '4.1300.0-dev4130.151';
39863
39863
 
39864
39864
  // @dynamic
39865
39865
  class ClientManager {