the Java code is as follows:
< H2 > configure WebSocket < / H2 >//
var ctx = ""
// Scoket
var socket = new SockJS(`${ctx}/endpointSang`)
var stompClient = Stomp.over(socket)
//
stompClient.connect({}, frame => {
console.log(":", frame)
stompClient.subscribe(`${ctx}/topic/getResponse`, response => {
console.log(":", JSON.parse(response.body).responseMessage)
})
})
//
stompClient.send(`${ctx}/welcome`, {}, JSON.stringify({ name: "rx" }))
so, what happened? What should we do?