Giter Site home page Giter Site logo

Comments (6)

vorburger avatar vorburger commented on May 27, 2024

This seems to happen because the "code" (token) is missing here:

[08:23:54 INFO] [ch.vorburger.minecraft.storeys.web.ActionsConsumer]: Handling message received on EventBus: {
  "action" : "registerCondition",
  "condition" : "newCmddemo"
}

[08:34:42 INFO] [ch.vorburger.minecraft.storeys.web.ActionsConsumer]: Handling message received on EventBus: {
  "action" : "setTitle",
  "text" : "Welcome!"
}

but how is this possible, in line 94 or 54 of index.ts we seems to always set the code?

DId code got (re?)set to undefined on the TS/JS side already, and Vert.x hides properties with null?

from minecraft-storeys-maker.

edewit avatar edewit commented on May 27, 2024

one problem I see is that 2 user can't both have a command that is called 'demo' that does different things. And another problem is that the command registers a bit fast if I type 'my-demo' I end up with commands for 'm' and 'my' all the way up to 'my-demo'

from minecraft-storeys-maker.

edewit avatar edewit commented on May 27, 2024

also here, when we don't find the player maybe not set it to null

from minecraft-storeys-maker.

edewit avatar edewit commented on May 27, 2024

So the source of this problem is that the event bus sends and both either of the 2 connected session receive the last new loggedIn event. So after that only one is still logged in. See: https://vertx.io/docs/vertx-core/java/#_the_theory

"Sending a message will result in only one handler registered at the address receiving the message.
This is the point to point messaging pattern. The handler is chosen in a non-strict round-robin fashion."

from minecraft-storeys-maker.

vorburger avatar vorburger commented on May 27, 2024

#37 and #35 seem to have fixed this, as far as I can see... THANK YOU @edewit

I'm keeping this open until we are sure that we are not missing anything - I'm still testing.

from minecraft-storeys-maker.

vorburger avatar vorburger commented on May 27, 2024

I've found 2 other issues, but -as far as I can tell- have fixed this multi-user problem, so close.

@edewit please re-open if you can spot any other places where we need to switch to reply()...

from minecraft-storeys-maker.

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.