@magic-xpa/engine 4.1300.0-dev4130.161 → 4.1300.0-dev4130.169

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,12 +1,12 @@
1
1
  {
2
2
  "name": "@magic-xpa/engine",
3
- "version": "4.1300.0-dev4130.161",
3
+ "version": "4.1300.0-dev4130.169",
4
4
  "description": "magic engine package",
5
5
  "license": "SEE LICENSE IN EULA.pdf",
6
6
  "dependencies": {
7
- "@magic-xpa/mscorelib": "4.1300.0-dev4130.161",
8
- "@magic-xpa/utils": "4.1300.0-dev4130.161",
9
- "@magic-xpa/gui": "4.1300.0-dev4130.161",
7
+ "@magic-xpa/mscorelib": "4.1300.0-dev4130.169",
8
+ "@magic-xpa/utils": "4.1300.0-dev4130.169",
9
+ "@magic-xpa/gui": "4.1300.0-dev4130.169",
10
10
  "@angular/common": "^21.1.4",
11
11
  "socket.io": "^4.8.3",
12
12
  "socket.io-client": "^4.8.3",
@@ -3,7 +3,7 @@ import { StringBuilder, List, RefParam, IComparable, Dictionary, Stack, Applicat
3
3
  import { StorageAttribute, XmlParser, CallOperationMode, MgControlType, TableBehaviour, LnkEval_Cond, LnkMode, UniqueTskSort, ForceExit, Priority, ViewRefreshMode, Logger_LogLevels, Order } from '@magic-xpa/utils';
4
4
  import { Subject } from 'rxjs/internal/Subject';
5
5
  import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
6
- import { Subject as Subject$1, Observable } from 'rxjs';
6
+ import { Subject as Subject$1 } from 'rxjs';
7
7
 
8
8
  declare enum EventSubType {
9
9
  Normal = 0,
@@ -4635,76 +4635,29 @@ declare class SubscriberClient {
4635
4635
  private static instance;
4636
4636
  private socket;
4637
4637
  private subscribedTopics;
4638
- private messageSubject;
4639
- private subscriptionsDataSubject;
4640
4638
  private constructor();
4641
4639
  /**
4642
4640
  * Get the singleton instance of SubscriberClient
4643
4641
  */
4644
4642
  static getInstance(task: TaskBase): SubscriberClient;
4645
- /**
4646
- * Subscribe to a specific topic
4647
- * @param topic The topic to subscribe to
4648
- */
4649
- subscribe(topic: string): void;
4650
4643
  /**
4651
4644
  * Subscribe to multiple topics at once
4652
4645
  * @param topics Array of topics to subscribe to
4653
4646
  */
4654
- subscribeToTopics(topics: string[]): void;
4655
- /**
4656
- * Unsubscribe from a specific topic
4657
- * @param topic The topic to unsubscribe from
4658
- */
4659
- unsubscribe(topic: string): void;
4647
+ subscribe(topics: string[]): void;
4660
4648
  /**
4661
4649
  * Unsubscribe from multiple topics at once
4662
4650
  * @param topics Array of topics to unsubscribe from
4663
4651
  */
4664
- unsubscribeFromTopics(topics: string[]): void;
4652
+ unsubscribe(topics: string[]): void;
4665
4653
  /**
4666
4654
  * Unsubscribe from all topics
4655
+ * TODO: To be called when client explicitly disconnects from the server. Alternately, if middleware receives a disconnect request, it can also unsubscribe from all topics from its own side.
4667
4656
  */
4668
4657
  unsubscribeFromAll(): void;
4669
- /**
4670
- * Check if subscribed to a specific topic
4671
- * @param topic The topic to check
4672
- * @returns true if subscribed, false otherwise
4673
- */
4674
- isSubscribed(topic: string): boolean;
4675
- /**
4676
- * Get all currently subscribed topics
4677
- * @returns Array of subscribed topics
4678
- */
4679
- getSubscribedTopics(): string[];
4680
- /**
4681
- * Get an Observable for incoming messages from all subscribed topics
4682
- * @returns Observable that emits message data
4683
- */
4684
- onMessage(): Observable<{
4685
- topic: string;
4686
- message: any;
4687
- }>;
4688
- /**
4689
- * Get an Observable for incoming messages from a specific topic
4690
- * @param topic The topic to filter messages for
4691
- * @returns Observable that emits message data for the specified topic
4692
- */
4693
- onMessageForTopic(topic: string): Observable<{
4694
- topic: string;
4695
- message: any;
4696
- }>;
4697
- /**
4698
- * Get current subscriptions (for debugging)
4699
- */
4700
- getSubscriptions(): void;
4701
- /**
4702
- * Listen for subscriptions data
4703
- * @returns Observable that emits subscriptions list
4704
- */
4705
- onSubscriptionsData(): Observable<any[]>;
4706
4658
  /**
4707
4659
  * Disconnect from the server
4660
+ * TODO: To be called when client explicitly disconnects from the server.
4708
4661
  */
4709
4662
  disconnect(): void;
4710
4663
  }