versacall-core-library-react 2.0.78-dev → 2.0.80-dev
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.
|
@@ -236,6 +236,16 @@ function onPublish(flags, body) {
|
|
|
236
236
|
const qos = flags >> 1 & 0x03;
|
|
237
237
|
const payloadStart = 2 + topicLen + (qos > 0 ? 2 : 0);
|
|
238
238
|
const payloadStr = textDecoder.decode(body.slice(payloadStart));
|
|
239
|
+
|
|
240
|
+
// TEMPORARY DEBUG - remove after diagnosis
|
|
241
|
+
ports.forEach(port => {
|
|
242
|
+
try {
|
|
243
|
+
port.postMessage({
|
|
244
|
+
type: 'LOG',
|
|
245
|
+
message: 'RAW TOPIC: ' + topic + ' | QOS: ' + qos + ' | PAYLOAD: ' + payloadStr.substring(0, 200)
|
|
246
|
+
});
|
|
247
|
+
} catch (_) {}
|
|
248
|
+
});
|
|
239
249
|
let data;
|
|
240
250
|
try {
|
|
241
251
|
data = JSON.parse(payloadStr);
|
|
@@ -280,7 +290,7 @@ function openWebSocket(config) {
|
|
|
280
290
|
clearTimeout(reconnectTimerId);
|
|
281
291
|
const proto = config.secure ? 'wss' : 'ws';
|
|
282
292
|
const url = "".concat(proto, "://").concat(config.host, ":").concat(config.port);
|
|
283
|
-
ws = new WebSocket(url
|
|
293
|
+
ws = new WebSocket(url);
|
|
284
294
|
ws.binaryType = 'arraybuffer';
|
|
285
295
|
|
|
286
296
|
// Each connection gets a fresh random client ID (emitter doesn't care about
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"versacall": {
|
|
3
3
|
"title": "Versacall Core Library React",
|
|
4
4
|
"applicationType": "react-library",
|
|
5
|
-
"build":
|
|
5
|
+
"build": 80
|
|
6
6
|
},
|
|
7
7
|
"name": "versacall-core-library-react",
|
|
8
|
-
"version": "2.0.
|
|
8
|
+
"version": "2.0.80-dev",
|
|
9
9
|
"description": "Versacall Core Library",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"module": "dist/index.js",
|