Coder Social home page Coder Social logo

Comments (2)

konsultaner avatar konsultaner commented on September 22, 2024

@aarlt you are using crossbar which is much more mature then this packages. So I bet, the issue is on my side. I havn't found the issue right away. I'll fix this during the week I hope!. Pretty busy atm.

from connectanum-dart.

konsultaner avatar konsultaner commented on September 22, 2024

@aarlt I just took a closer look to your issue report. Actually this is absolutly expected:

before publish: 1
after publish: 1
before publish: 2
received from <id>.push: '1'
after publish: 2
before publish: 3
received from <id>.push: '2'
after publish: 3
before publish: 4
received from <id>.push: '3'
after publish: 4

The received from <id>.push: '3' is not awaited but totally async.

await session2.publish(
      'topic',
      arguments: ['4'], options: PublishOptions(acknowledge: true));

only receives a published, but not a has been receivced by the subscriber. So even if the await was satisfied, doesn't mean that the client has received the event. Returning the published is much faster then sending an event from a publish. There is almost no way that your expected result will happen. The only way to achieve this is to add a stream yourself, that is fed with the event you receive in your subscriber and await it.

from connectanum-dart.

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.