[*] 日常优化

This commit is contained in:
acgist
2023-06-20 08:03:16 +08:00
parent 5a7deafea9
commit b34c2e904b
2 changed files with 1 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ const signalChannel = {
me.reconnection = reconnection;
return new Promise((resolve, reject) => {
console.debug("连接信令通道:", me.address);
me.channel = new WebSocket(me.address, { handshakeTimeout: 5000 });
me.channel = new WebSocket(me.address, { rejectUnauthorized: false, handshakeTimeout: 5000 });
me.channel.on("open", async function () {
console.info("打开信令通道:", me.address);
// TODO电池信息