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