mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
19 lines
630 B
C#
19 lines
630 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MQTTnet.Core.Server
|
|
{
|
|
public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher
|
|
{
|
|
event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
|
|
event EventHandler<MqttClientDisconnectedEventArgs> ClientDisconnected;
|
|
event EventHandler<MqttServerStartedEventArgs> Started;
|
|
|
|
IList<ConnectedMqttClient> GetConnectedClients();
|
|
void Publish(IEnumerable<MqttApplicationMessage> applicationMessages);
|
|
|
|
Task StartAsync();
|
|
Task StopAsync();
|
|
}
|
|
} |