HomePhabricator
Diffusion Comm a58cd93b9140

[Tunnelbroker] add MessageToDeviceRequest message

Description

[Tunnelbroker] add MessageToDeviceRequest message

Summary:
Issue: ENG-5149.

Protocol diagram: notion doc.

  1. We want to send request to Tunnelbroker to send message to device.
  2. We add clientMessageID because Tunnelbroker has to know which message to confirm later.
  3. Using clientMessageID - not simple messageID because Tunnelbroker will assign another ID based od timestamp (messages needs to be sorted).
  4. Adding this ID will also fix problem when two separate Tunnelbroker instances will get message for the same recipient in exactly the same time.

Depends on D9461

Test Plan: Run tests (both message and Tunnelbroker integration tests)

Reviewers: michal, bartek, varun, jon

Reviewed By: michal

Subscribers: ashoat, tomek, wyilio

Differential Revision: https://phab.comm.dev/D9462

Details

Provenance
kamilAuthored on Oct 10 2023, 6:28 AM
Reviewer
michal
Differential Revision
D9462: [Tunnelbroker] add MessageToDeviceRequest message
Parents
rCOMMe2a35627dd89: [Tunnelbroker] handle all types of socket messages
Branches
Unknown
Tags
Unknown