Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
huytran17 committed May 25, 2024
1 parent 2f8076b commit bd4bf70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/src/config/socket.io/nsp/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function makeInitialClientNsp({ userDb }: { userDb: IUserDb }) {
);

socket.on(SocketEvents.DISCONNECT, async () => {
const offline_user_id = online_users[socket.id]?.toString();
const offline_user_id = online_users[socket.id];

delete online_users[socket.id];

Expand Down

0 comments on commit bd4bf70

Please sign in to comment.