use vue-socket-io: globally
import VueSocketio from "vue-socket.io";
Vue.use(VueSocketio, "http://socketserver.com:1923");
there is a problem, that is, no matter where the current page is, socket is set up. Once the connection goes wrong, the page will always reconnect the request. Now I don"t know how to use socket, only on a page.