Vue.js websocket subscribe to activeMQ Topic

problem description

subscribing to an activeMQ topic browser with websocket in vue.js always prompts for a handshake error.

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

    var url = "ws://192.168.100.209:61616";
    var topic = "emp.alarm.empAlarmRecord";
    var client = Stomp.client(url);

what result do you expect? What is the error message actually seen?

console reports such an error: failed: Error during WebSocket handshake: Invalid status line

Menu