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?
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?