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

Add "verbatim" option to subscribe function #106

Closed

Conversation

josephfrazier
Copy link

My use case involves consuming non-JSON messages sent by another client. I realize that "JSON as the only serialization provider" is one of this library's assumptions, but I'm hoping it can be made possible to bypass the JSON parsing if needed. I wasn't sure of exactly the right place to put this option, so I wanted to post what I have so far (still needs docs/tests) and get some feedback. What do you think?

@arobson
Copy link
Collaborator

arobson commented Nov 25, 2015

@josephfrazier - this is nit-picky, but verbatim strikes me as a bit odd. How about noParse or raw? If you don't have a problem with either of those options, then adding that isn't a problem and I'd just need a test and change to the README to get it merged in.

@josephfrazier
Copy link
Author

Thanks for the feedback, @arobson. I agree that verbatim is a little weird/esoteric. Of the alternatives, I think noParse is the clearest. I'll try to take a look at changing the option name and adding tests/docs within the next few days.

josephfrazier pushed a commit to josephfrazier/wascally that referenced this pull request Dec 18, 2015
This allows non-JSON messages to be consumed by adding a line to the
queue's JSON configuration:

       queues: [
         {
           name: queueName,
    +      noParse: true,
           autoDelete: true,
           subscribe: true,
         }
       ],

This option was originally named "verbatim" in commit b4ab993, but
@arobson and I agreed that "noParse" is preferable. See here:

LeanKit-Labs#106 (comment)
This allows non-JSON messages to be consumed by adding a line to the
queue's JSON configuration:

       queues: [
         {
           name: queueName,
    +      noParse: true,
           autoDelete: true,
           subscribe: true,
         }
       ],

This option was originally named "verbatim" in commit b4ab993, but
@arobson and I agreed that "noParse" is preferable. See here:

LeanKit-Labs#106 (comment)
@josephfrazier
Copy link
Author

I got to this a little sooner than anticipated :) Mind taking a look?

@arobson
Copy link
Collaborator

arobson commented Jun 4, 2016

@josephfrazier - my apologies for how this has played out. For a lot of reasons, we've stopped active development and support of wascally. rabbot is the successor and not only supports JSON, text and byte messages by default but lets you plug in custom serializers. I really appreciate the work you put into the PR and it did help drive the development of improving serialization in rabbot. Thank you again.

@arobson arobson closed this Jun 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants