public async Task OnMessage(ClientConnection connection, object requestData) { var request = (JoinMatchmakingQueueRequest)requestData; await connection.SendMessage(new JoinMatchmakingQueueResponse() { ResponseId = request.RequestId }); MatchmakingQueueAssignmentNotification assignmentNotification = new MatchmakingQueueAssignmentNotification() { Reason = "", MatchmakingQueueInfo = new LobbyMatchmakingQueueInfo() { ShowQueueSize = true, QueuedPlayers = 7, PlayersPerMinute = 4, GameConfig = new LobbyGameConfig(), QueueStatus = QueueStatus.Success, AverageWaitTime = TimeSpan.FromSeconds(100), } }; await connection.SendMessage(assignmentNotification); QueueManager.AddPlayerToQueue(connection); }