/// <summary> /// Handles the incoming packet that has been sent from the client. /// </summary> public void Parse(ClientMessage message, ConnectionCore connection) { int userId = message.ReadInt32(); int roomId = message.ReadInt32(); Chatroom room = connection.ServerManager.ChatroomManager.GetChatroom(roomId); if (room != null) { room.Leave(connection); } }