添加设置/获取备注api,添加用户在线状态回调功能

This commit is contained in:
heavyrain.lee
2020-01-04 14:47:27 +08:00
parent 70c390dea9
commit d71644c209
11 changed files with 215 additions and 31 deletions
@@ -103,7 +103,7 @@ public class NettyMQTTHandler extends ChannelInboundHandlerAdapter {
String clientID = NettyUtils.clientID(ctx.channel());
if (clientID != null && !clientID.isEmpty()) {
LOG.info("Notifying connection lost event. MqttClientId = {}.", clientID);
m_processor.processConnectionLost(clientID, ctx.channel());
m_processor.processConnectionLost(clientID, ctx.channel(), false);
}
ctx.close();
}