mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 17:00:03 +08:00
18 lines
576 B
C#
18 lines
576 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using MQTTnet.Core.Adapter;
|
|
|
|
namespace MQTTnet.Core.Server
|
|
{
|
|
public interface IMqttServer
|
|
{
|
|
event EventHandler<MqttApplicationMessageReceivedEventArgs> ApplicationMessageReceived;
|
|
event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
|
|
|
|
IList<ConnectedMqttClient> GetConnectedClients();
|
|
void InjectClient(string identifier, IMqttCommunicationAdapter adapter);
|
|
void Publish(MqttApplicationMessage applicationMessage);
|
|
void Start();
|
|
void Stop();
|
|
}
|
|
} |