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

subscribe Command, i cann't get the callback #66

Closed
cristicmf opened this issue Jan 28, 2019 · 8 comments
Closed

subscribe Command, i cann't get the callback #66

cristicmf opened this issue Jan 28, 2019 · 8 comments

Comments

@cristicmf
Copy link

subscribe Command, i cann't get the callback
for example:
var topic="12345" stompClient.subscribe(topic, function (message) { if (message.body) { console.log('stompClient.connected subscribe...'); console.log("got message with body " + message.body) } else { console.log('stompClient.connected subscribe ot empty message...'); showGreeting("subscribe", topic, ""); } }, {id: window.uuid, destination: topic});

@kum-deepak
Copy link
Member

Please enable debug and attach console output.

@cristicmf
Copy link
Author

I can get the console output
but the callback function can not get work

@cristicmf
Copy link
Author

cristicmf commented Jan 31, 2019

background:

  1. I publish topic:111
  2. subscribe topic :111
  3. send message to the destination"111"
    then
    there is the message I got ,But no content
    "<<< SUBSCRIBE
    version:1.1
    content-length:6

"

But I can get the message in the websocket FRAME

@kum-deepak
Copy link
Member

Please attach the entire console output.

@cristicmf
Copy link
Author

thx 😄 , I solved the question.

@zhangya5847
Copy link

I have the same question.Could you tell me how do you do? Thx!

@kum-deepak
Copy link
Member

Please enable debug and attach the entire console output.

@majastip123
Copy link

I have the same problem, how did you resolve?

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

No branches or pull requests

4 participants