We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14dad7c commit 4b4cff9Copy full SHA for 4b4cff9
2 files changed
OpenFlow/src/Messages/Message.ts
@@ -214,6 +214,20 @@ export class Message {
214
try {
215
msg = QueueMessage.assign(this.data);
216
if (Util.IsNullUndefinded(msg.jwt)) msg.jwt = cli.jwt;
217
+ if (!Util.IsNullUndefinded(msg.data)) {
218
+ if (typeof msg.data == 'string') {
219
+ try {
220
+ var obj = JSON.parse(msg.data);
221
+ if (Util.IsNullUndefinded(obj.jwt)) {
222
+ obj.jwt = msg.jwt;
223
+ msg.data = JSON.stringify(obj);
224
+ }
225
+ } catch (error) {
226
227
+ } else {
228
+ msg.data.jwt = msg.jwt;
229
230
231
if (Util.IsNullUndefinded(msg.data.jwt)) msg.data.jwt = msg.jwt;
232
if (Util.IsNullEmpty(msg.replyto)) {
233
await cli.sendToQueue(msg);
VERSION
@@ -1 +1 @@
1
-0.0.506
+0.0.507
0 commit comments