You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above behaviour is wrong for v5 spec. Currently if this packet code is assigned to a packet from OnPublish on some custom logic based failure, the expected and desired behaviour is for the ErrRejectPacket to be the reason code used in the PubAck. You can see this in v5 spec here.
server/server.go
Lines 911 to 912 in 8f52b89
The above behaviour is wrong for
v5
spec. Currently if this packet code is assigned to a packet fromOnPublish
on some custom logic based failure, the expected and desired behaviour is for the ErrRejectPacket to be the reason code used in the PubAck. You can see this in v5 spec here.Mochi ref to the code:
server/packets/codes.go
Line 95 in 8f52b89
The text was updated successfully, but these errors were encountered: