arobson / rabbot

Deprecated: Please see https://github.com/Foo-Foo-MQ/foo-foo-mq
MIT License
277 stars 129 forks source link

Better content detection #140

Closed ptusch closed 4 years ago

ptusch commented 6 years ago

When you send an array in publish or request, it's for the subscriber not possible to decipher it because it will be considered a buffer (octet stream). Writing array structures as json seems a valid pattern but the serializer would not allow it and limit a user of rabbot to wrap array structure in an object body.

This PR also contains tests for these changes in the subscriber.

ptusch commented 6 years ago

@arobson Okay, I totally failed the cherry pick again. I just hope you dont mind the third commit.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.005%) to 88.961% when pulling beebb865441543f74dd61cd7bd8e154b1a7907a0 on hufsm:better_content_detection into 80b63c08bdb32d04fd36502f24180e0c8e8f69ee on arobson:master.