Text and data can only be passed by String, ArrayBuffer or TypedArray #544
Answered
by
ghost
vimalmistry
asked this question in
Q&A
-
Here is code for publish by channel. try {
this.app.publish(channel, jsonEncode([event, data]))
} catch (err) {
console.log("SEND ERROR", { err, send_data: jsonEncode([event, data]) }, typeof jsonEncode([event, data]))
} The issue is Its sending data everytime. But Some of message is not working. and giving me error Working..
As you can see third value it's shows typeof send data is string. Strange but What's the problem? Can somebody guide me plz. I am stuck here for 3 hours. |
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Jun 5, 2021
Replies: 1 comment 6 replies
-
If a and b take string and you have confirmed b is string then.............. maybe confirm a is string? It is impossible to make out anything from this snippet |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
vimalmistry
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a and b take string and you have confirmed b is string then.............. maybe confirm a is string? It is impossible to make out anything from this snippet