function connect() {
var socket = new SockJS("/socket");
stompClient = Stomp.over(socket);
stompClient.connect({}, function (frame) {
setConnected(true);
});
console.log("test");
}
when the front end uses sockjs.js and stomp.js for WebSocket connection, debug sees that when executing the stompClient.connect method, it does not enter the method body, but jumps directly to the console.log statement. Why?