proxy configured, local port is 9527
proxy: {
"/socketServer": {
target: "ws://192.168.30.76:8087",
changeOrigin: true,
ws: true,
},
},
let ws = new WebSocket("ws://localhost:9527/socketServer/server-admin")
ws.onopen = function(data) {
console.log("WebSocket: ")
}
Native writing this is a successful
Socket.io-client
~
I don"t know what"s wrong.