chore: add client identifier field

This commit is contained in:
Leandro Antônio Farias Machado 2023-05-07 10:54:31 -03:00
parent ed8d83b561
commit 09acc57689

View File

@ -507,6 +507,7 @@ func (s *Server) sendConnack(cl *Client, reason packets.Code, present bool) erro
ServerKeepAliveFlag: true,
ReceiveMaximum: s.Options.Capabilities.ReceiveMaximum, // 3.2.2.3.3 Receive Maximum
User: []packets.UserProperty{{Key: "subscribe-topic", Val: "oktopus/v1/agent/" + clUser}},
AssignedClientID: clUser,
}
if reason.Code >= packets.ErrUnspecifiedError.Code {