1.1.5 • Published 2 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
2 years ago
1.1.4
2 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.0-beta6
3 years ago
1.1.0-beta7
3 years ago
1.1.0-beta5
3 years ago
1.1.0-beta3
3 years ago
1.1.0-beta4
3 years ago
1.1.0-beta2
3 years ago
1.1.0-beta1
3 years ago
1.0.0
3 years ago