[*] 日常优化
This commit is contained in:
@@ -6,8 +6,6 @@ const { Taoyao, signalChannel } = require("./Taoyao");
|
||||
|
||||
// 线程名称
|
||||
process.title = config.name;
|
||||
// 禁止校验无效证书
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
||||
|
||||
// 工作线程
|
||||
const mediasoupWorkers = [];
|
||||
|
||||
@@ -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:电池信息
|
||||
|
||||
Reference in New Issue
Block a user