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

Can I subscribe to multiple topics with one stomp client? #47

Closed
yhz82415 opened this issue Jun 7, 2019 · 1 comment
Closed

Can I subscribe to multiple topics with one stomp client? #47

yhz82415 opened this issue Jun 7, 2019 · 1 comment
Labels

Comments

@yhz82415
Copy link

yhz82415 commented Jun 7, 2019

Hi:

I might be missing something but how can I subscribe to multiple topics with one stomp client?

I tried
socketClient.subscribe(destination: "topic-a")
socketClient.subscribe(destination: "topic-b")

the message sent to topic-a can never be caught by the delegate
func stompClient(client: StompClientLib!, didReceiveMessageWithJSONBody jsonBody: AnyObject?, withHeader header: [String : String]?, withDestination destination: String) { print("DESTIONATION : \(destination)") print("JSON BODY : \(String(describing: jsonBody))") }

  • Evan
@yhz82415
Copy link
Author

yhz82415 commented Jun 7, 2019

NVM... Got it working by using "subscribeWithHeader"

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