fca-uzair-rajput 2.2.2 → 2.2.3
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 +1 -1
- package/src/listenMqtt.js +6 -3
package/package.json
CHANGED
package/src/listenMqtt.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// FIX FCA GLOBAL CRASH
|
|
2
|
+
if (!global.Fca) global.Fca = {};
|
|
3
|
+
if (!global.Fca.Data) global.Fca.Data = {};
|
|
4
|
+
if (!global.Fca.Require) global.Fca.Require = { Uzair: {}, logger: console };
|
|
1
5
|
/* eslint-disable linebreak-style */
|
|
2
6
|
'use strict';
|
|
3
7
|
|
|
@@ -14,9 +18,8 @@ const {
|
|
|
14
18
|
var identity = function() {};
|
|
15
19
|
var form = {};
|
|
16
20
|
var getSeqID = function() {};
|
|
17
|
-
global.Fca.Data.MsgCount = new Map();
|
|
18
|
-
global.Fca.Data.event = new Map();
|
|
19
|
-
|
|
21
|
+
global.Fca.Data.MsgCount = global.Fca.Data.MsgCount || new Map();
|
|
22
|
+
global.Fca.Data.event = global.Fca.Data.event || new Map();
|
|
20
23
|
const topics = ['/ls_req', '/ls_resp', '/legacy_web', '/webrtc', '/rtc_multi', '/onevc', '/br_sr', '/sr_res', '/t_ms', '/thread_typing', '/orca_typing_notifications', '/notify_disconnect', '/orca_presence', '/inbox', '/mercury', '/messaging_events', '/orca_message_notifications', '/pp', '/webrtc_response'];
|
|
21
24
|
|
|
22
25
|
let WebSocket_Global;
|