HomePhabricator
Diffusion Comm dba062686647

[native] Start/stop backup client from JS

Description

[native] Start/stop backup client from JS

Summary:
ENG-6213 : Create long lived backup client

Start and stop the rust backup client handler from JS if a user is a logged in staff and enables it in the settings.

Depends on D10621

Test Plan:
Monitor backup service logs and:

  • Enable the backup handler in menu -> the websocket in connected
  • Check that the websocket is disconnected after disabling the backup handler in menu or logging out
  • Check that the websocket automatically reconnects after app is closed and opened (without logging out) and when backup service is killed (simulating network issues)

Reviewers: marcin, bartek, kamil

Reviewed By: bartek

Subscribers: ashoat, tomek

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

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Jan 12 2024, 6:47 AM
Reviewer
bartek
Differential Revision
D10629: [native] Start/stop backup client from JS
Parents
rCOMM87853f9673db: [native] Implement persistent rust backup client
Branches
Unknown
Tags
Unknown