Close Socket.io connection after fetching data on server

This commit is contained in:
Neshura 2024-01-04 01:35:34 +01:00
parent d150c6cdba
commit 99679cc45b
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
4 changed files with 186 additions and 0 deletions
src/routes
data/servers
servers
services

View file

View file

View file

@ -50,6 +50,7 @@ async function login(socket: Socket): Promise<string> {
{ username: process.env.KUMA_USERNAME, password: process.env.KUMA_PASSWORD, token: '' },
(res: { token: string }) => {
token = res.token;
socket.close();
}
);