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

Let client decide what to do with stomp frame body #4

Closed
steviemo opened this issue Oct 27, 2017 · 3 comments
Closed

Let client decide what to do with stomp frame body #4

steviemo opened this issue Oct 27, 2017 · 3 comments
Labels

Comments

@steviemo
Copy link

steviemo commented Oct 27, 2017

Hey - nice library and it's working well thanks.

Could we add a new StompClientLibDelegate function that just returns the String optional of the message body rather than an AnyObject?

I send different JSON objects down the wire for different topics and would like to handle the raw JSON string myself:

func stompClient(client: StompClientLib!, didReceiveMessageWithJSONBody jsonBody: String?, withHeader header:[String:String]?, withDestination destination: String)

Thanks

@WrathChaos
Copy link
Owner

WrathChaos commented Oct 27, 2017

Sure! :)
When I have time, definitely will add it but you can create a PR and contribute it :) It could be much more faster.

@steviemo
Copy link
Author

That will do cheers - will sort out PR now thanks

@WrathChaos
Copy link
Owner

@steviemo I updated the new version(1.2.0) please try the new protocol and give me a feedback :) Thank you sir!

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

No branches or pull requests

2 participants