Dispatched when a user leaves the current room.
This event is also dispatched when a user gets disconnected from the server.
This event is also dispatched when a user gets disconnected from the server.
| C# | Visual Basic | Visual C++ |
Version:
SmartFoxServer Basic / Pro
The following example shows how to check the handle the user leaving room notification.
CopyC#
SFSEvent.onUserLeaveRoom += OnUserLeaveRoom; public void OnUserLeaveRoom(int roomId, int userId, string userName) { Debug.WriteLine("User " + userName + " left the room"); }