【m】log完成

This commit is contained in:
2026-05-06 16:08:00 +08:00
parent e47eee39ed
commit a6cda3e9dd
7 changed files with 70 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
import * as websocket from "ws";
import { Server } from 'http';
import * as handler from "./class/websockethandler";
import { log, LogLevel } from './log';
export default class WSSignaling {
server: Server;
@@ -69,7 +70,7 @@ export default class WSSignaling {
}
// 打印接收到的消息
console.log(msg);
log(LogLevel.log, 'WS received:', msg);
// 根据消息类型处理
switch (msg.type) {