摘要: import io from 'socket.io-client'; const socket = io(socketUrl, { //指定后台的url地址 path: config.socketPath, //路径path transports: ['websocket', 'polling'], //指定为socket query: { //参数 tok... 阅读全文
posted @ 2018-12-03 11:02 JSKevin 阅读(581) 评论(0) 推荐(0) 编辑