Exemple #1
0
        /// <summary>
        /// Called when connected client is connected in HMQ protocol
        /// </summary>
        public async Task Disconnected(IHorseServer server, HorseServerSocket client)
        {
            MqClient mqClient = (MqClient)client;
            await _server.RemoveClient(mqClient);

            foreach (IClientHandler handler in _server.ClientHandlers)
            {
                await handler.Disconnected(_server, mqClient);
            }
        }