优化长连接
This commit is contained in:
@@ -125,10 +125,10 @@ class webSocketUtils {
|
||||
start(data) {
|
||||
console.log('开启心跳检测',data)
|
||||
this.heartbeatInterval = setInterval(() => {
|
||||
// this.send({
|
||||
// data: '心跳检测',
|
||||
// type: 'jc',
|
||||
// });
|
||||
this.send({
|
||||
data: '心跳检测',
|
||||
type: 'heartbeat',
|
||||
});
|
||||
}, this.timeout);
|
||||
}
|
||||
//重新连接
|
||||
|
||||
Reference in New Issue
Block a user