基于uniapp的WebSocket封装的uni.socket

需引入并创建一个socket实例,创建完成后你将得到一个uni.socket对象 import UniSocket from "utils/uni.socket.js" const socket = new UniSocket({ url: "wss://127.0.0.1/" });     阅读全文
UpYou's avatar
UpYou 12月 28,2020