Comments (3)
抱歉哈~对springboot和netty不熟,不太理解你说的监听器是个什么东西。
from smart-socket.
简而言之,我需要获取AioQuickClient发起连接之后是否连接成功,目前看到的是连接失败会直接抛出异常,我需要的是能够自动发起重连,或者提供连接失败的回调入口
from smart-socket.
无异常并能返回Session就说明连接成功了。
自动重连的功能需要使用者自行实现。因为网络断开只是个结果,smart-socket无法知道导致该结果的原因为何,也就无法做出合适的处理策略。有些场景下断开就结束了,而有些场景又需要重连,作为通信框架很难兼顾。
如果你需要感知网络断开,关注一下 SESSION_CLOSED这个状态机便可。
from smart-socket.
Related Issues (15)
- smart-socket Users HOT 2
- AioClient收到的TCP报文延迟高 HOT 4
- aio-core 1.5.31 版本会提示这个错 HOT 2
- 有没有选项打印收发的socket数据 HOT 3
- 客户端连接超时时间和超时回调接口在哪设置? HOT 1
- 是否支持虚拟线程? HOT 1
- 怎么在logbak中打印日志 HOT 1
- windows平台下载速度比centos下载速度慢得多 HOT 1
- 文档地址失效了
- 怎么安装? HOT 2
- smart-socket支持多线程通信吗? HOT 1
- 串口通信能用这个库实现吗? HOT 2
- java 模块化 module-info.java
- 疑问 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smart-socket.