fix: remove ws welcome

This commit is contained in:
linyuchen 2024-02-16 10:34:56 +08:00
parent 97200f427d
commit 0eeba1d29e

View File

@ -71,7 +71,7 @@ export function startWSServer(port: number) {
wsServer = new websocket.Server({port}) wsServer = new websocket.Server({port})
wsServer.on("connection", (ws, req) => { wsServer.on("connection", (ws, req) => {
const url = req.url; 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 == "/") { if (url == "/api" || url == "/api/" || url == "/") {
ws.on("message", async (msg) => { ws.on("message", async (msg) => {