Remove dedicated V3 messages.

This commit is contained in:
Christian Kratky
2018-11-18 22:04:39 +01:00
parent 2fbb44ec66
commit 3db22eea51
9 changed files with 31 additions and 42 deletions
@@ -9,7 +9,6 @@ using MQTTnet.Diagnostics;
using MQTTnet.Exceptions;
using MQTTnet.Internal;
using MQTTnet.Packets;
using MQTTnet.Packets.V3;
using MQTTnet.Protocol;
namespace MQTTnet.Server
@@ -229,7 +228,7 @@ namespace MQTTnet.Server
if (connectReturnCode != MqttConnectReturnCode.ConnectionAccepted)
{
await clientAdapter.SendPacketAsync(
new MqttV3ConnAckPacket
new MqttConnAckPacket
{
ConnectReturnCode = connectReturnCode
},
@@ -242,7 +241,7 @@ namespace MQTTnet.Server
var clientSession = result.Session;
await clientAdapter.SendPacketAsync(
new MqttV3ConnAckPacket
new MqttConnAckPacket
{
ConnectReturnCode = connectReturnCode,
IsSessionPresent = result.IsExistingSession