mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
85c6d9a836 |
@@ -68,7 +68,7 @@ export function startWSServer(port: number) {
|
|||||||
log("ws server close failed!", err)
|
log("ws server close failed!", err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
wsServer = new websocket.Server({port})
|
wsServer = new websocket.Server({host: "0.0.0.0", 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);
|
||||||
|
Reference in New Issue
Block a user