Coder Social home page Coder Social logo

关于心跳包的问题 about hp-socket HOT 3 CLOSED

ldcsaa avatar ldcsaa commented on July 24, 2024
关于心跳包的问题

from hp-socket.

Comments (3)

ldcsaa avatar ldcsaa commented on July 24, 2024
  1. 必须1秒以上,否则对性能影响太大
  2. 发送大文件用分块发送,然后组合存储

from hp-socket.

anheiqq avatar anheiqq commented on July 24, 2024

谢谢你的解答, 可能应用场景场景不一样,考虑的方向不一样, 我们的场景是一个局域网的数据通信,最多也就8个客户端, 而服务端是放在pc上给人使用的,连接后可以实时看到客户端的状态变化,是否掉线等,对检验掉线的实时性有些要求(1到2秒也可接受)。所以这种场景下客户端是比较少的,即使减小检测周期,对性能也不会产生多大影响。如果参数可以设置的话(或者可设置检测次数也行,检测次数应该对性能没太大影响吧?),用户就可以根据不同场景和不同需求就行调整了,只要将各种利弊描述清楚即可。

可能这种应用场景比较少,如果不能设置的话,那我们就自己定义心跳包去实现吧。

再次感谢作者的贡献, 这个库我们使用一段时间了,非常的方便也很稳定, 谢谢

from hp-socket.

ldcsaa avatar ldcsaa commented on July 24, 2024

Thanks~

from hp-socket.

Related Issues (20)

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.