fix: 拦截错误

This commit is contained in:
手瓜一十雪 2024-05-20 16:26:42 +08:00
parent 5825fd6f36
commit 7b09479cd2

View File

@ -30,9 +30,10 @@ export class WebsocketServerBase {
start(port: number, host: string = '') {
try {
this.ws = new WebSocketServer({
port ,
port,
host: '',
maxPayload: 1024 * 1024 * 1024
}).on('error', () => {
});
log(`ws服务启动成功, ${host}:${port}`);
} catch (e: any) {