From 0eeba1d29e9aeef92af4ce04658d3ba408f7f249 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Fri, 16 Feb 2024 10:34:56 +0800 Subject: [PATCH] fix: remove ws welcome --- src/onebot11/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot11/server.ts b/src/onebot11/server.ts index 0a0eac7..199343b 100644 --- a/src/onebot11/server.ts +++ b/src/onebot11/server.ts @@ -71,7 +71,7 @@ export function startWSServer(port: number) { wsServer = new websocket.Server({port}) wsServer.on("connection", (ws, req) => { const url = req.url; - ws.send('Welcome to the LLOneBot WebSocket server! url:' + url); + // ws.send('Welcome to the LLOneBot WebSocket server! url:' + url); if (url == "/api" || url == "/api/" || url == "/") { ws.on("message", async (msg) => {