|
|
@@ -4294,7 +4294,11 @@ const createWebSocketConnection = async (type = 1) => {
|
|
|
api.yweb_socket,
|
|
|
'PPT' + props.courseid,
|
|
|
docSocket.value,
|
|
|
- { params: { yauth: authToken.value } }
|
|
|
+ {
|
|
|
+ params: { yauth: authToken.value },
|
|
|
+ maxBackoffTime: 5000, // 重连最长等 5 秒
|
|
|
+ timeout: 30000 // 连接超时时间(30秒)
|
|
|
+ }
|
|
|
)
|
|
|
|
|
|
// 启动定期更新 token
|