Skip to content

Dashboard example includes confusing code #13

@ericallam

Description

@ericallam

The code itself isn't confusing, I'm just confused as to why this stuff is in the client app:

logging_gateway = engine.logging_gateway.create();
stdout_client = engine.logging_stdout_client.create();
logging_gateway.add_logger(stdout_client);

logging_opts = {
    logging_gateway: logging_gateway
};

intake = engine.intake.create(logging_opts);
exhaust = engine.exhaust.create(logging_opts);
cylinder = engine.cylinder.create(logging_opts);

It doesn't seem like it's necessary, or am I missing something? Can it be used for communication with the piston server?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions