09-10-netty优化已读返回
This commit is contained in:
@ -330,6 +330,8 @@ public class ChatServerHandler extends SimpleChannelInboundHandler<TextWebSocket
|
|||||||
JSONObject message = new JSONObject();
|
JSONObject message = new JSONObject();
|
||||||
message.put("type", "1");
|
message.put("type", "1");
|
||||||
message.put("unReadCount", temp);
|
message.put("unReadCount", temp);
|
||||||
|
//发送
|
||||||
|
sendMessage(ctx, message.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user