Skip to content
New issue

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

Should incoming messages automatically be JSON parsed? #29

Open
ReidWilliams opened this issue Dec 20, 2016 · 0 comments
Open

Should incoming messages automatically be JSON parsed? #29

ReidWilliams opened this issue Dec 20, 2016 · 0 comments

Comments

@ReidWilliams
Copy link
Contributor

nomad.publish() will attempt to JSON.stingify an object message that is passed to it. Right now a message passed to a subscription callback is just the plain string that comes over the wire.

I think nomad should parse this into an object if it was published as an object. Is there a way to distinguish a plain string from a JSON stringified object?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant