f0de0b6247ccac12badf5ff1883bce93c92cb011..c2a1c68a2a398e6d0f2f5854c65127efbff306b1
2024-10-28 fuliqi
Merge remote-tracking branch 'origin/master'
c2a1c6 对比 | 目录
2024-10-28 fuliqi
websocket定时ping
296e40 对比 | 目录
1个文件已修改
6 ■■■■■ 已修改文件
src/views/meet/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/meet/index.vue
@@ -278,13 +278,15 @@
    this.jitsiApi.addListener('readyToClose', () => {
      window.close()
    })
    // 初始化
    this.initWebSocket()
    // 每三秒更学员在线状态
    this.intervalId = setInterval(() => {
      this.getRoomInfo()
      // 发送心跳数据
      this.ws.send('ping')
    }, 2500)
    // 初始化
    this.initWebSocket()
  },
  beforeDestroy () {
    // 清除定时器,避免内存泄漏