Skip to content

Should intervehicle subscriptions automatically republish interprocess() upon receipt? #237

@tsaubergine

Description

@tsaubergine

This idiom seems common so that intervehicle messages can be logged or used internally without multiple subscribers. Should we have this be the default, or at least an cleanly specified option (perhaps in Subscriber)?

e.g.,

        intervehicle().subscribe_dynamic<protobuf::Command>(
            [this](const protobuf::Command& command) {
                handle_command(command);
                // republish for logging purposes
                interprocess().publish<jaiabot::groups::hub_command>(command);
            },
            *groups::hub_command_this_bot, command_subscriber);

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