mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
18 lines
583 B
C#
18 lines
583 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public interface IMqttServer : IApplicationMessageReceiver, IApplicationMessagePublisher
|
|
{
|
|
event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
|
|
event EventHandler<MqttClientDisconnectedEventArgs> ClientDisconnected;
|
|
event EventHandler<MqttServerStartedEventArgs> Started;
|
|
|
|
Task<IList<ConnectedMqttClient>> GetConnectedClientsAsync();
|
|
|
|
Task StartAsync(IMqttServerOptions options);
|
|
Task StopAsync();
|
|
}
|
|
} |