|
@@ -4506,11 +4506,11 @@ const createWebSocketConnection = async (type = 1) => {
|
|
|
if (docSocket.value) {
|
|
if (docSocket.value) {
|
|
|
initializeYjsData()
|
|
initializeYjsData()
|
|
|
}
|
|
}
|
|
|
- if (type == 1) {
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- createWebSocketConnection(2)
|
|
|
|
|
- }, 1000)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (type == 1) {
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
|
+ // createWebSocketConnection(2)
|
|
|
|
|
+ // }, 1000)
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
else if (event.status === 'disconnected') {
|
|
else if (event.status === 'disconnected') {
|
|
|
console.log('👉 连接断开,等待自动重连...')
|
|
console.log('👉 连接断开,等待自动重连...')
|