optimize: log

This commit is contained in:
linyuchen committed 2024-04-27 19:21:54 +08:00
1 parent ef4ad9a283
commit b2a212822c
4 files changed
+13 -9

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ export class WebsocketServerBase {
});
log(`ws服务启动成功, ${host}:${port}`);
} catch (e: any) {
throw Error('ws服务启动失败, ' + e.toString());
throw Error('ws服务启动失败, 请检查监听的ip和端口' + e.toString());
}
this.ws.on('connection', (wsClient, req) => {
const url: string = req.url!.split('?').shift() || '/';