Disconnects the user from the specified room and bans them.
await disconnectUserSelf({ member: "user123", roomName: "main-room", socket: socketInstance,}); Copy
await disconnectUserSelf({ member: "user123", roomName: "main-room", socket: socketInstance,});
The options for disconnecting the user.
A promise that resolves when the disconnection request has been emitted.
Disconnects the user from the specified room and bans them.
Example