Giter Club home page Giter Club logo

Comments (5)

werbenhu avatar werbenhu commented on May 24, 2024

1、当服务端订阅topic与客户端订阅的topic一致时(如: test/# ),如果所有订阅的客户端全部disconnect后,客户端重新上线,则服务端的订阅收不到消息,看起来像客户端的离线造成了所有相关的topic全部取消了订阅。inline subscribers do not receive messages after all non-inline clients unsubscribe

这个问题存在,即将修复。This issue exists and will be addressed soon.

2、服务端似乎无法订阅 $SHARE/xy/iot/gateway 这样的共享topic。It seems that the server cannot subscribe to shared topics like $SHARE/xy/iot/gateway

这个问题不存在,你订阅$SHARE/xy/iot/gatewa 其中xy是group,你发布iot/gatewa就可以收到消息了,参考:共享订阅介绍与示例 This issue does not exist. You can subscribe to $SHARE/xy/iot/gateway, where xy is the group, and then publish to iot/gateway to receive messages.

from server.

terry831010 avatar terry831010 commented on May 24, 2024

感谢你对问题一的修复。 今天针对问题二再次验证,确定服务端订阅的共享topic: $SHARE/xy/iot/gateway ,客户端publish到iot/gateway,是无法收到消息的。 这里需要说明一点:我通过注册一个hook,在hook的OnPublish、OnPublished中却又是可以收到,但是在服务端的server.Subscribe里并没有收到任何数据。 当我把服务端订阅的topic改成iot/gateway,又可以收到消息了。

from server.

werbenhu avatar werbenhu commented on May 24, 2024

@terry831010 内联订阅暂时好像不支持共享订阅,服务端本身也有需要共享订阅之前确实没考虑到还会有这种场景。

from server.

werbenhu avatar werbenhu commented on May 24, 2024

@terry831010 为什么要在内联订阅中使用共享订阅呢,你能不能详细描述下你的使用场景?我看看是不是可以通过其他方案解决你的问题,I've created a new discussion about this issue. You can track the latest progress via #387.

from server.

terry831010 avatar terry831010 commented on May 24, 2024

你好,目前这个需求不是很强烈,我们考虑订阅不同的主题来规避。
关于场景:
系统在设计阶段是这样考虑的:服务端订阅某个主题消费数据,在外围有一个业务系统,也需要订阅相同的主题消费。此时,就需要与服务端共享订阅此主题了。

from server.

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.