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