Skip to content

Replying node.on.done on localhost might send msgs too early  #168

Open
@shakty

Description

@shakty

Usecase:

client:

node.done();

server:

node.on.done('X', (msg) => node.say('next step or this step?');

If the server is fast and client is slow the message might arrive after the client is DONE but before the client has started the new step (the stepping procedure is async to let local listeners finish). In this case, the message belongs to the previous step. Vice versa the message will be fired on the next step.

If messages are critical to be fired in the next (e.g., sending the payoff for the game to EndScreen), it will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions