Close Socket.io connection after fetching data on server
This commit is contained in:
parent
eb44208419
commit
a6d13c2a1a
4 changed files with 186 additions and 0 deletions
src/routes/services
|
@ -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();
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue