1.1.5 • Published 3 years ago
browser-log-reporter v1.1.5
Browser Log Reporter
引入方式
js引入
<script src="./alirtc-log-repoter.js"></script>
npm引入
npm i browser-log-reporter
创建实例
import {LogReporter} from "browser-log-reporter";
let reporter = new LogReporter({
wsUrl: 'wss://xxx.xx.xx',
product: 1
});
监听事件
reporter.on("onReconnect", () => {
// websocket重连消息
})
reporter.on("onError", (arr: []) => {
// websocket重连失败,需要降级
})
发送埋点
reporter.send({xxx: ''});
关闭埋点上报
reporter.close();
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.1.0-beta6
4 years ago
1.1.0-beta7
4 years ago
1.1.0-beta5
4 years ago
1.1.0-beta3
4 years ago
1.1.0-beta4
4 years ago
1.1.0-beta2
4 years ago
1.1.0-beta1
4 years ago
1.0.0
4 years ago