using System; using System.Collections.Generic; using MQTTnet.Core.Adapter; namespace MQTTnet.Core.Server { public interface IMqttServer { event EventHandler ApplicationMessageReceived; event EventHandler ClientConnected; IList GetConnectedClients(); void InjectClient(string identifier, IMqttCommunicationAdapter adapter); void Publish(MqttApplicationMessage applicationMessage); void Start(); void Stop(); } }