import SockJS from "sockjs-client";
import Stomp from" stompjs";
connect () {
//
var socket = new SockJS("http://192.168.6.67:8081/endpoint");
var stompClient = Stomp.over(socket);
stompClient.connect({}, (frame) => {
stompClient.subscribe("/user/39/queue/getResponse", function(respnose){
console.log(2222)
console.log(respnose);
});
})
}
tune this.connect ();
I don"t know if the things on my front end are wrong. I can use one-to-many ("/ topic/getResponse"), but not one-to-one ("/ user/39/queue/getResponse"). Please give me some advice
.I don"t know if it"s my problem or the background problem.