Vue uses stomp as the websocket, background.

outside export default var stompClient = null;

methods

connection() {
            // 
            this.socket = new SockJS("http://192.168.6.56:8081/endpoint"); 
            stompClient = Stomp.over(this.socket);
            //
            stompClient.connect({}, (frame) => {
                console.log("Connected:" + frame);
                ("/topic/getResponse")("/user/39/queue/getResponse")
                stompClient.subscribe("/user/39/queue/getResponse",function(response){
                    console.log(123123123)
                    console.log(JSON.parse(response.body));
                })
            }, (err) => {
                console.log(err)
            });

        },

mounted

this.connection()
Dec.09,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3eeba-2c446.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3eeba-2c446.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?