-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎样保持长连接,进行心跳检测呢。 #43
Comments
客户端定时发送 |
0.8.0版本 手写一个Java客户端 进入ping 没收到服务端消息. |
你的代码发一下 |
用的你们0.8.0版本代码作为服务端,客户端自己写的。 package com.crc.crcloud.steam.deploy.netty; import io.netty.buffer.ByteBuf; /**
package com.crc.crcloud.steam.deploy.netty.client; import com.crc.crcloud.steam.deploy.netty.CustomHeartbeatHandler; /**
package com.crc.crcloud.steam.deploy.netty.client; import com.crc.crcloud.steam.deploy.netty.CustomHeartbeatHandler; import java.util.Random; /**
} |
建议直接使用Netty的PingWebSocketFrame |
怎样保持长连接,进行心跳检测呢。
The text was updated successfully, but these errors were encountered: