We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pub/Sub can only publish JS truthy values
EITHER pubsub accept any serializable JS value OR pubsub message requires a single Object/Array as per the JSON spec
skygear.pubsub.publish will throw an exception if the message body is JS falsey. i.e. 42, "hello", [] and {} works but 0, "", and null does not.
skygear.pubsub.publish
42
"hello"
[]
{}
0
""
null
The text was updated successfully, but these errors were encountered:
@rickmak I suggest restricting the pubsub message to JSON object/dictionary only to make it consistent across all SDK.
Sorry, something went wrong.
Allow pubsub to publish falsy message
2ca9626
refs #228
Steven-Chan
No branches or pull requests
Pub/Sub can only publish JS truthy values
Expected Results
EITHER pubsub accept any serializable JS value
OR pubsub message requires a single Object/Array as per the JSON spec
Actual Results
skygear.pubsub.publish
will throw an exception if the message body is JS falsey.i.e.
42
,"hello"
,[]
and{}
works but0
,""
, andnull
does not.The text was updated successfully, but these errors were encountered: