Skip to content
This repository was archived by the owner on Sep 19, 2019. It is now read-only.
This repository was archived by the owner on Sep 19, 2019. It is now read-only.

Implement flags to allow routing messages over specific peers #30

@chris--

Description

@chris--

Extend the message format to include a via and reply-via flag to make sure a message passes a specific peer on its way back to the sender.

{
    to: '123abc',
    from: 'cba321',
    type: 'some-proto',
    payload: (...),
    reply-via: 'def123'
}

If peer 123abc receives a message with reply-via set, it answers with a message where the via-field is set to the value of reply-via like so:

{
    to: '123abc',
    from: 'cba321',
    type: 'some-proto',
    payload: (...),
    via: 'def123'
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions