HomePhabricator
Diffusion Comm 166dc76c6518

[lib] implement sending message to Tunnelbroker

Description

[lib] implement sending message to Tunnelbroker

Summary:
ENG-8347

Add callback to send message to Tunnelbroker.

Depends on D12523

Test Plan:
Call this from both web and native:

const message: SetDeviceToken = {
  type: messageToTunnelbrokerTypes.SET_DEVICE_TOKEN,
  deviceToken: 'token',
};
 await sendMessageToTunnelbroker(JSON.stringify(message));

and verify if deviceToken is persisted in DDB.

Reviewers: bartek, marcin

Reviewed By: bartek

Subscribers: ashoat, tomek

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

Details

Provenance
kamilAuthored on Jun 20 2024, 2:47 PM
Reviewer
bartek
Differential Revision
D12524: [lib] implement sending message to Tunnelbroker
Parents
rCOMM36a8f028c429: [Tunnelbroker] handle `SetDeviceToken` message
Branches
Unknown
Tags
Unknown