using System; using System.Collections.Generic; using System.Threading.Tasks; namespace MQTTnet.Core.Server { public interface IMqttServer { event EventHandler ClientConnected; event EventHandler ClientDisconnected; event EventHandler ApplicationMessageReceived; IList GetConnectedClients(); void Publish(MqttApplicationMessage applicationMessage); Task StartAsync(); Task StopAsync(); } }