Skip to content

why subcribe failed  #166

@Mike2017go

Description

@Mike2017go

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions