@magic-xpa/engine 4.1300.0-dev4130.130 → 4.1300.0-dev4130.132
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.
|
@@ -606,6 +606,8 @@ class ConstInterface {
|
|
|
606
606
|
static MG_ATTR_SPECIAL_REUSE_TABLE_EDITOR = "SpecialReuseTableEditor";
|
|
607
607
|
static MG_TAG_LAST_ROUTE = "LastRoute";
|
|
608
608
|
static RC_TOKEN_CACHED_FILE = "CACHE=";
|
|
609
|
+
//For PuSub
|
|
610
|
+
static MG_TAG_PUBSUB_SERVER_URI = "PubSubServerURI";
|
|
609
611
|
}
|
|
610
612
|
|
|
611
613
|
/// <summary>
|
|
@@ -11259,6 +11261,7 @@ class Environment {
|
|
|
11259
11261
|
_dropUserFormats = null;
|
|
11260
11262
|
_webclientReinitSession = "N";
|
|
11261
11263
|
_specialValNewPolicy = false; //??
|
|
11264
|
+
_pubsubServerURI = null;
|
|
11262
11265
|
static Instance = new Environment();
|
|
11263
11266
|
get Language() {
|
|
11264
11267
|
return this._language;
|
|
@@ -11467,6 +11470,9 @@ class Environment {
|
|
|
11467
11470
|
case ConstInterface.MG_ATTR_SPECIAL_DOTNET_ALLOW_ZERO_DATE:
|
|
11468
11471
|
case ConstInterface.MG_ATTR_SPECIAL_REUSE_TABLE_EDITOR:
|
|
11469
11472
|
break;
|
|
11473
|
+
case ConstInterface.MG_TAG_PUBSUB_SERVER_URI:
|
|
11474
|
+
this._pubsubServerURI = valueStr;
|
|
11475
|
+
break;
|
|
11470
11476
|
default:
|
|
11471
11477
|
Logger.Instance.WriteExceptionToLogWithMsg("in Environment.fillData(): unknown attribute: " + attribute);
|
|
11472
11478
|
break;
|
|
@@ -11903,6 +11909,9 @@ class Environment {
|
|
|
11903
11909
|
GetSpecialCancelOnCreate() {
|
|
11904
11910
|
return this._specialCancelOnCreate;
|
|
11905
11911
|
}
|
|
11912
|
+
GetPubSubServerURI() {
|
|
11913
|
+
return this._pubsubServerURI;
|
|
11914
|
+
}
|
|
11906
11915
|
}
|
|
11907
11916
|
/// <summary>
|
|
11908
11917
|
/// This class holds details for single Environment (per Component)
|
|
@@ -18584,17 +18593,20 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
18584
18593
|
eval_op_Subscribe(val1, resVal) {
|
|
18585
18594
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
18586
18595
|
resVal.BoolVal = false;
|
|
18587
|
-
let sc = SubscriberClient.getInstance();
|
|
18596
|
+
let sc = SubscriberClient.getInstance(EnvParamsTable.Instance.get(ConstInterface.MG_TAG_PUBSUB_SERVER_URI));
|
|
18588
18597
|
let topics = this.params2arguments(val1, 0, val1.length);
|
|
18589
18598
|
sc.subscribeToTopics(topics);
|
|
18590
|
-
topics.forEach(topic =>
|
|
18591
|
-
|
|
18592
|
-
})
|
|
18599
|
+
topics.forEach(topic => {
|
|
18600
|
+
sc.subscribe(topic);
|
|
18601
|
+
});
|
|
18602
|
+
// topics.forEach(topic => sc.onMessageForTopic(topic).subscribe(data => {
|
|
18603
|
+
// console.log("Received message: " + data.message);
|
|
18604
|
+
// }));
|
|
18593
18605
|
}
|
|
18594
18606
|
eval_op_UnSubscribe(val1, resVal) {
|
|
18595
18607
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
18596
18608
|
resVal.BoolVal = false;
|
|
18597
|
-
let sc = SubscriberClient.getInstance();
|
|
18609
|
+
let sc = SubscriberClient.getInstance(EnvParamsTable.Instance.get(ConstInterface.MG_TAG_PUBSUB_SERVER_URI));
|
|
18598
18610
|
let topics = this.params2arguments(val1, 0, val1.length);
|
|
18599
18611
|
sc.unsubscribeFromTopics(topics);
|
|
18600
18612
|
}
|
|
@@ -39684,7 +39696,7 @@ class CommandsTable {
|
|
|
39684
39696
|
}
|
|
39685
39697
|
}
|
|
39686
39698
|
|
|
39687
|
-
let CurrentClientVersion = '4.1300.0-dev4130.
|
|
39699
|
+
let CurrentClientVersion = '4.1300.0-dev4130.132';
|
|
39688
39700
|
|
|
39689
39701
|
// @dynamic
|
|
39690
39702
|
class ClientManager {
|