Coder Social home page Coder Social logo

xyna-factory / xyna-yggdrasil Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 38 KB

Event utilities needed for the Xyna Modeller parts to interact with Xyna via pull and push events

License: Apache License 2.0

TypeScript 100.00%
events long-polling rxjs typescript

xyna-yggdrasil's Introduction

xyna-yggdrasil's People

Contributors

johannesheucher-gip avatar patrickvonmassow-gip avatar torbensiegismund-gip avatar sela1236 avatar osuender avatar

Watchers

 avatar  avatar  avatar

xyna-yggdrasil's Issues

Queue message bus subscriptions to avoid overlapping requests

Currently, calls of the methods addCustomMessageSubscription or removeCustomMessageSubscriptio in MessageBusService in quick succession can lead to overlapping processing in the Xyna Factory. This can lead to unpredictable results since they are handled asynchronously in the GuiHttp application and the order in which the requests are being finished is undefined.

Solution: Subscribe/unsubscribe requests must be queued to make sure no more than one is running for a session at a given time and they are handled in the order of their respective start times.

changed signature include MessageBusObserver - cleanup

In message-bus.service.ts:

  • Remove customMessageReceivedSubject and correseponding calls
  • Remove signature addCustomMessageSubscription(subscription: XoMessage). Only allow calls with two inputs.
  • Remove signature removeCustomMessageSubscription(subscription: XoMessage). Only allow calls with two inputs.

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.