Skip to content
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

socket时,服务端把客户端T掉时,客户端能捕获吗? #21

Closed
RoyDongdi opened this issue May 26, 2019 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@RoyDongdi
Copy link

No description provided.

@beetlex-io
Copy link
Owner

暂不提供这个事件,因为组件的client断线后会重连所以没有加入这个事件。
连接事件Connected

@beetlex-io beetlex-io added the enhancement New feature or request label May 27, 2019
@RoyDongdi
Copy link
Author

断线重连的意思是 如果网络中断这种情况也是会自动重连的吗 ?
因为如果在项目中,客户端没办法判断当前链接是否断开的情况下,就必须要等待捕获异常信息才知道没有发送成功,这个过程有点长

@beetlex-io
Copy link
Owner

@RoyDongdi
是的,如果组件检测到网络断开是会重新连接。但你这情况在网络不好的情况连接可用性是不好判断的,因为TCP的keepalive也是需要比较长的时间,建议你通过业务ping,pong来确定连接的有效性。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants