[+] 整体架构调整

生产者接入完成
媒体作为信令服务的终端注册
This commit is contained in:
acgist
2023-02-25 13:31:57 +08:00
parent 6358255458
commit 129c36ed80
156 changed files with 3659 additions and 2817 deletions

View File

@@ -3,20 +3,17 @@
*/
const protocol = {
// 当前索引
index: 100000,
// 最小索引
minIndex: 100000,
index: 0,
// 最大索引
maxIndex: 999999,
maxIndex: 1000,
/**
* @returns 索引
*/
buildId() {
const self = this;
if (self.index++ >= self.maxIndex) {
self.index = self.minIndex;
if (++this.index >= this.maxIndex) {
this.index = 0;
}
return Date.now() + "" + self.index;
return Date.now() * 1000 + this.index;
},
/**
* @param {*} signal 信令标识