|
@@ -30,7 +30,7 @@ class HcSocket {
|
|
|
const { projectId, contractId, userId } = this.param
|
|
|
const { socket: socketUrl, clientId } = website
|
|
|
|
|
|
- const url = `${socketUrl}/blade-${clientId}/${projectId}/${contractId}/${userId}`
|
|
|
+ const url = `${socketUrl}/${clientId}/${projectId}/${contractId}/${userId}`
|
|
|
this.socket = new WebSocket(url)
|
|
|
|
|
|
this.socket.onopen = this.handleOpen.bind(this)
|
|
@@ -103,7 +103,7 @@ class HcSocket {
|
|
|
|
|
|
// 指数退避策略
|
|
|
getReconnectInterval(attempt) {
|
|
|
- return Math.min(1000 * Math.pow(2, attempt), 30000)
|
|
|
+ return Math.min(1000 * Math.pow(2, attempt), this.interval)
|
|
|
}
|
|
|
|
|
|
handleMultipleTabs() {
|