WrathChaos/StompClientLib

Let client decide what to do with stomp frame body

steviemo opened this issue · 3 comments

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

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

That will do cheers - will sort out PR now thanks

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