vue創建socket長鏈接

getSocket() { //獲取消息 var socket = new WebSocket('wss://你的socket地址'); socket.onopen = function () { const _this = this var userInfo = JSON.parse(localStorage.getItem('
相關文章
相關標籤/搜索