Skip to content

Commit

Permalink
✨ Introducing new features.服务端心跳检测
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed Jan 6, 2019
1 parent 5a4d1ca commit e1225b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exc
if (evt instanceof IdleStateEvent) {
IdleStateEvent idleStateEvent = (IdleStateEvent) evt;
if (idleStateEvent.state() == IdleState.READER_IDLE) {
LOGGER.info("向客户端发送心跳");

//向客户端发送消息
CIMRequestProto.CIMReqProtocol heartBeat = SpringBeanFactory.getBean("heartBeat",
Expand Down

0 comments on commit e1225b5

Please sign in to comment.