连接包

This commit is contained in:
2024-11-12 18:04:28 +08:00
parent d0d1793786
commit 93d41169e1
5 changed files with 99 additions and 58 deletions

View File

@ -1,4 +1,5 @@
import { ExtServer } from "@Packages/message/extension";
import { Server } from "@Packages/message";
async function setupOffscreenDocument() {
// 创建运行后台脚本的沙盒环境
@ -20,7 +21,11 @@ async function main() {
// 初始化沙盒环境
await setupOffscreenDocument();
// 监听消息
new ExtServer();
const extServer = new ExtServer();
const server = new Server(extServer);
server.on("", (con) => {
});
}
main();