【m】log完成
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user