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

One of the delegate method is not being called. #12

Closed
muddanaraj opened this issue Jan 17, 2018 · 1 comment
Closed

One of the delegate method is not being called. #12

muddanaraj opened this issue Jan 17, 2018 · 1 comment
Labels

Comments

@muddanaraj
Copy link

I have integrated the code from https://github.com/WrathChaos/StompClientLib
I have noticed that one of the delegate method of the stomp client,

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

is not being called, others are being called properly.

@WrathChaos
Copy link
Owner

WrathChaos commented Jan 17, 2018

Hello again @muddanaraj :)
There are two methods for the same functionality.

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

Please check the second options which is the "didReceiveMessageWithJSONBody jsonBody: String?" one. It will be called if you get the string json from stream pipe :)
Please give me a feedback.
Have fun !

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