TURN 服务器: DEBUG
This commit is contained in:
parent
914ae000d5
commit
5ca1ed5f8d
4
index.js
4
index.js
@ -11,9 +11,9 @@ const turnServer = new turn({
|
||||
password: 'your-password',
|
||||
},
|
||||
debugLevel: 'ALL',
|
||||
listeningIps: [''],
|
||||
listeningIps: ['0.0.0.0'],
|
||||
listeningPort: 3478,
|
||||
relayIps: [''],
|
||||
relayIps: ['0.0.0.0'],
|
||||
relayPort: 3478,
|
||||
verbose: true
|
||||
})
|
||||
|
@ -114,13 +114,12 @@ export default class ClientList {
|
||||
}
|
||||
console.log('收到未知数据:', data)
|
||||
}
|
||||
websocket.onclose = event => {
|
||||
websocket.onclose = async event => {
|
||||
console.log('WebSocket 断线重连...')
|
||||
setTimeout(() => {
|
||||
//this.websocket = linkStart()
|
||||
await new Promise(resolve => setTimeout(resolve, 10000))
|
||||
// this.websocket = linkStart()
|
||||
// 调试模式: 直接刷新页面重载
|
||||
window.location.reload()
|
||||
}, 3000)
|
||||
}
|
||||
return websocket
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user