mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: remove ws welcome
This commit is contained in:
parent
97200f427d
commit
0eeba1d29e
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user