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

why subcribe failed #166

Open
Mike2017go opened this issue Jun 13, 2023 · 0 comments
Open

why subcribe failed #166

Mike2017go opened this issue Jun 13, 2023 · 0 comments

Comments

@Mike2017go
Copy link

As the followwing error msg
connected to server RabbitMQ/3.7.18 stomp.js:134 send PING every 8000ms stomp.js:134 check PONG every 8000ms stomp.js:134 >>> SUBSCRIBE id:sub-0 destination:/queue/q1

On the Web, It shows it subscribed successfully. However, It did not go in the call back function and recevie msg.

` this.client = Stomp.client('ws://127.0.0.1:15674/ws')

onConnected: function (frame) {
  this.client.subscribe(

    "/queue/q1",

    function(d){
      console.log('context: ', d.body)
    },

    this.onFailed        this.onFailed
  )
},

`

plz can you help me fix the problem?

image

image

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

1 participant