首页 > TAG信息列表 > websocketMessage
引用 websocket vue 初始化事件触发
//初始化websocketinitWebsocket(wbUrl){ this.websocket = new WebSocket(wbUrl); this.websocket.onopen = this.websocketOpen; this.websocket.onmessage = this.websocketMessage; this.websocket.onerror = this.websocketError;}, //发送请求websocketOpen(){ console