Coder Social home page Coder Social logo

Comments (3)

smthing avatar smthing commented on July 30, 2024

抱歉哈~对springboot和netty不熟,不太理解你说的监听器是个什么东西。

from smart-socket.

129duckflew avatar 129duckflew commented on July 30, 2024

简而言之,我需要获取AioQuickClient发起连接之后是否连接成功,目前看到的是连接失败会直接抛出异常,我需要的是能够自动发起重连,或者提供连接失败的回调入口

from smart-socket.

smthing avatar smthing commented on July 30, 2024

无异常并能返回Session就说明连接成功了。

自动重连的功能需要使用者自行实现。因为网络断开只是个结果,smart-socket无法知道导致该结果的原因为何,也就无法做出合适的处理策略。有些场景下断开就结束了,而有些场景又需要重连,作为通信框架很难兼顾。

如果你需要感知网络断开,关注一下 SESSION_CLOSED这个状态机便可。

from smart-socket.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.