Git Product home page Git Product logo

Comments (3)

ruanshudong avatar ruanshudong commented on August 27, 2024

第一问没懂, 也许你要的是push功能? 可以看看文档
第二问支持

from tars.

herui-ares avatar herui-ares commented on August 27, 2024

感谢您的回复,我现在需要服务端调用客户端的功能函数,服务端有特定的触发机制,条件满足之后就需要客户端执行对应的功能函数。了解到可以用异步调用来实现客户端函数的回调,但是看官方文档异步调用是单次了,而我需要服务端多次回调客户端函数的能力;也了解到您提到的push功能,可以满足多次回调的要求,但是了解到push功能是在push线程中的run函数里面循环+条件判断去触发,而循环会影响到性能消耗。请问下是否支持我主动push消息,而不需要循环去判断条件。

from tars.

ruanshudong avatar ruanshudong commented on August 27, 2024

保存CurrentPtr, 随时可以用这个对象push数据的, 当然前提是连接没有断, 所以current需要定时更新

from tars.

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.