netty-确定互联完成
This commit is contained in:
@@ -82,7 +82,7 @@ public class ClientHandler extends SimpleChannelInboundHandler<String> {
|
||||
private HeartBeat getHbMessage() {
|
||||
HeartBeat hb = new HeartBeat();
|
||||
hb.setDeviceName("dsadasdasd");
|
||||
hb.setVenueId(123);
|
||||
hb.setVenueId(32);
|
||||
return hb;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import io.netty.handler.timeout.IdleStateHandler;
|
||||
|
||||
public class ClientInitializer extends ChannelInitializer<SocketChannel> {
|
||||
|
||||
private final static int TIME_HEART_BEAT = 5;
|
||||
private final static int TIME_HEART_BEAT = 60;
|
||||
|
||||
public ClientThread.ReConnectHandler reConnectHandler;
|
||||
public ClientHandler dmClientHandler;
|
||||
|
||||
Reference in New Issue
Block a user